Skip to content

Commit 2178f18

Browse files
authored
style(bindings): address new clippy lint (#4411)
1 parent 5e3fc01 commit 2178f18

File tree

1 file changed

+3
-2
lines changed
  • bindings/rust/s2n-tls-tokio/src

1 file changed

+3
-2
lines changed

bindings/rust/s2n-tls-tokio/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ where
112112
let result = match self.error.take() {
113113
Some(err) => Err(err),
114114
None => {
115-
ready!(self.tls.with_io(ctx, |context| {
115+
let handshake_poll = self.tls.with_io(ctx, |context| {
116116
let conn = context.get_mut().as_mut();
117117
conn.poll_negotiate().map(|r| r.map(|_| ()))
118-
}))
118+
});
119+
ready!(handshake_poll)
119120
}
120121
};
121122
// If the result isn't a fatal error, return it immediately.

0 commit comments

Comments
 (0)