crypto: Fix a clippy warning.

master
Damir Jelić 2020-07-27 15:57:30 +02:00
parent 6e67585bf6
commit 792623f53d
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ impl<S: Clone> SasState<S> {
}
fn check_sender_and_txid(&self, sender: &UserId, flow_id: &str) -> Result<(), CancelCode> {
if flow_id != &*self.verification_flow_id {
if flow_id != *self.verification_flow_id {
Err(CancelCode::UnknownTransaction)
} else if sender != self.ids.other_device.user_id() {
Err(CancelCode::UserMismatch)