Skip to content

Commit 9a37712

Browse files
committed
fix CI
1 parent d152300 commit 9a37712

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ exclude = ["/.github", "/examples", "/scripts"]
1515
[dependencies]
1616
tokio = "1.0"
1717
rustls = { version = "0.23.5", default-features = false, features = ["std"] }
18-
pin-project-lite = "0.2.14"
1918
pki-types = { package = "rustls-pki-types", version = "1" }
2019

2120
[features]
@@ -35,3 +34,4 @@ futures-util = "0.3.1"
3534
lazy_static = "1.1"
3635
webpki-roots = "0.26"
3736
rustls-pemfile = "2"
37+
pin-project-lite = "0.2.14"

src/server.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::io;
2-
use std::io::Read;
32
#[cfg(unix)]
43
use std::os::unix::io::{AsRawFd, RawFd};
54
#[cfg(windows)]
@@ -107,6 +106,8 @@ where
107106
cx: &mut Context<'_>,
108107
buf: &mut ReadBuf<'_>,
109108
) -> Poll<io::Result<()>> {
109+
use std::io::Read;
110+
110111
let this = self.get_mut();
111112
let mut stream =
112113
Stream::new(&mut this.io, &mut this.session).set_eof(!this.state.readable());
@@ -144,7 +145,7 @@ where
144145
return Poll::Pending;
145146
}
146147

147-
return Poll::Ready(Ok(()));
148+
Poll::Ready(Ok(()))
148149
}
149150
TlsState::ReadShutdown | TlsState::FullyShutdown => Poll::Ready(Ok(())),
150151
s => unreachable!("server TLS can not hit this state: {:?}", s),

0 commit comments

Comments
 (0)