diff --git a/sasl/src/client/mechanisms/scram.rs b/sasl/src/client/mechanisms/scram.rs index 0cad90f..90f7260 100644 --- a/sasl/src/client/mechanisms/scram.rs +++ b/sasl/src/client/mechanisms/scram.rs @@ -109,7 +109,7 @@ impl Mechanism for Scram { bare.extend(self.client_nonce.bytes()); let mut data = Vec::new(); data.extend(&gs2_header); - data.extend(bare.clone()); + data.extend(&bare); self.state = ScramState::SentInitialMessage { initial_message: bare, gs2_header: gs2_header,