From 6695bdb926396ed3ecab346e80275e785e1b878c Mon Sep 17 00:00:00 2001 From: James Mayclin Date: Thu, 2 May 2024 19:01:29 +0000 Subject: [PATCH] style(bindings): fix new clippy lints --- bindings/rust/s2n-tls/src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/s2n-tls/src/connection.rs b/bindings/rust/s2n-tls/src/connection.rs index ccf50abe201..6ac1dc7a139 100644 --- a/bindings/rust/s2n-tls/src/connection.rs +++ b/bindings/rust/s2n-tls/src/connection.rs @@ -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());