Skip to content

Commit 520bd0b

Browse files
tottotoseanmonstar
authored andcommitted
refactor(lib): remove importing prelude trait
1 parent 9d7c3b9 commit 520bd0b

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

src/client/legacy/connect/http.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ fn connect(
679679
// keepalive timeout, it would be nice to use that instead of socket2,
680680
// and avoid the unsafe `into_raw_fd`/`from_raw_fd` dance...
681681
use socket2::{Domain, Protocol, Socket, Type};
682-
use std::convert::TryInto;
683682

684683
let domain = Domain::for_address(*addr);
685684
let socket = Socket::new(domain, Type::STREAM, Some(Protocol::TCP))

src/client/legacy/connect/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ where
248248
pub(super) mod sealed {
249249
use std::error::Error as StdError;
250250
use std::future::Future;
251-
use std::marker::Unpin;
252251

253252
use ::http::Uri;
254253
use hyper::rt::{Read, Write};

src/client/legacy/pool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::error::Error as StdError;
66
use std::fmt::{self, Debug};
77
use std::future::Future;
88
use std::hash::Hash;
9-
use std::marker::Unpin;
109
use std::ops::{Deref, DerefMut};
1110
use std::pin::Pin;
1211
use std::sync::{Arc, Mutex, Weak};

src/common/rewind.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::marker::Unpin;
21
use std::{cmp, io};
32

43
use bytes::{Buf, Bytes};

src/server/conn/auto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::marker::PhantomPinned;
77
use std::mem::MaybeUninit;
88
use std::pin::Pin;
99
use std::task::{Context, Poll};
10-
use std::{error::Error as StdError, io, marker::Unpin, time::Duration};
10+
use std::{error::Error as StdError, io, time::Duration};
1111

1212
use bytes::Bytes;
1313
use http::{Request, Response};

0 commit comments

Comments
 (0)