Skip to content

Commit

Permalink
style(bindings): fix new clippy lints (#4536)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmayclin authored May 2, 2024
1 parent 1ed5624 commit 67b807e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/rust/s2n-tls/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ impl Connection {
if let Some(prev_waker) = ctx.waker.as_mut() {
// only replace the Waker if they dont reference the same task
if !prev_waker.will_wake(waker) {
*prev_waker = waker.clone();
prev_waker.clone_from(waker);
}
} else {
ctx.waker = Some(waker.clone());
Expand Down

0 comments on commit 67b807e

Please sign in to comment.