Remove an allocation in client::mechanisms::scram::Scram::initial

This commit is contained in:
Lucas Kent 2024-05-06 08:25:24 +10:00
parent f725994fe0
commit a291ab2e83

View file

@ -109,7 +109,7 @@ impl<S: ScramProvider> Mechanism for Scram<S> {
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,