Skip to content

Commit 2c72f72

Browse files
committed
format
1 parent 4e76cc2 commit 2c72f72

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/http.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
pub use http::status::StatusCode;
44
pub use http::uri::{Authority, PathAndQuery, Uri};
55

6-
#[doc(inline)]
7-
pub use body::{Body, util::BodyExt};
86
pub use crate::sys::http::client::Client;
9-
pub use error::{Error, ErrorCode, Result};
107
pub use crate::sys::http::fields::{HeaderMap, HeaderName, HeaderValue};
118
pub use crate::sys::http::method::Method;
9+
pub use crate::sys::http::scheme::{InvalidUri, Scheme};
10+
#[doc(inline)]
11+
pub use body::{Body, util::BodyExt};
12+
pub use error::{Error, ErrorCode, Result};
1213
pub use request::Request;
1314
pub use response::Response;
14-
pub use crate::sys::http::scheme::{InvalidUri, Scheme};
1515

1616
pub mod body {
1717
//! HTTP body types.
@@ -24,10 +24,10 @@ pub mod error {
2424
//! There are various concrete error types
2525
2626
pub use crate::http::body::InvalidContentLength;
27+
pub use crate::sys::http::{ErrorCode, HeaderError};
2728
pub use anyhow::Context;
2829
pub use http::header::{InvalidHeaderName, InvalidHeaderValue};
2930
pub use http::method::InvalidMethod;
30-
pub use crate::sys::http::{ErrorCode, HeaderError};
3131

3232
pub type Error = anyhow::Error;
3333
/// The `http` result type.

src/time.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ use std::ops::{Add, AddAssign, Sub, SubAssign};
1414
use std::pin::Pin;
1515
use std::task::{Context, Poll};
1616

17-
use crate::{
18-
iter::AsyncIterator,
19-
runtime::AsyncPollable,
20-
};
17+
use crate::{iter::AsyncIterator, runtime::AsyncPollable};
2118

2219
pub use crate::sys::time::SystemTime;
2320

0 commit comments

Comments
 (0)