Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmid-23 committed May 21, 2024
1 parent d152300 commit 9a37712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ exclude = ["/.github", "/examples", "/scripts"]
[dependencies]
tokio = "1.0"
rustls = { version = "0.23.5", default-features = false, features = ["std"] }
pin-project-lite = "0.2.14"
pki-types = { package = "rustls-pki-types", version = "1" }

[features]
Expand All @@ -35,3 +34,4 @@ futures-util = "0.3.1"
lazy_static = "1.1"
webpki-roots = "0.26"
rustls-pemfile = "2"
pin-project-lite = "0.2.14"
5 changes: 3 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::io;
use std::io::Read;
#[cfg(unix)]
use std::os::unix::io::{AsRawFd, RawFd};
#[cfg(windows)]
Expand Down Expand Up @@ -107,6 +106,8 @@ where
cx: &mut Context<'_>,
buf: &mut ReadBuf<'_>,
) -> Poll<io::Result<()>> {
use std::io::Read;

let this = self.get_mut();
let mut stream =
Stream::new(&mut this.io, &mut this.session).set_eof(!this.state.readable());
Expand Down Expand Up @@ -144,7 +145,7 @@ where
return Poll::Pending;
}

return Poll::Ready(Ok(()));
Poll::Ready(Ok(()))
}
TlsState::ReadShutdown | TlsState::FullyShutdown => Poll::Ready(Ok(())),
s => unreachable!("server TLS can not hit this state: {:?}", s),
Expand Down

0 comments on commit 9a37712

Please sign in to comment.