From c2a386b889728f8aa91ae067b0112af43ebf2252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 19 Aug 2020 14:40:04 +0200 Subject: [PATCH] crypto: Fix a clippy warning. --- matrix_sdk_crypto/src/verification/sas/mod.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/matrix_sdk_crypto/src/verification/sas/mod.rs b/matrix_sdk_crypto/src/verification/sas/mod.rs index c3e49687..c876ea8f 100644 --- a/matrix_sdk_crypto/src/verification/sas/mod.rs +++ b/matrix_sdk_crypto/src/verification/sas/mod.rs @@ -226,16 +226,13 @@ impl Sas { identity.user_id(), ); - match &identity { - UserIdentities::Own(i) => { - i.mark_as_verified(); - self.store.save_user_identities(&[identity]).await?; - } - // TODO if we have the private part of the user signing - // key we should sign and upload a signature for this - // identity. - _ => {} + if let UserIdentities::Own(i) = &identity { + i.mark_as_verified(); + self.store.save_user_identities(&[identity]).await?; } + // TODO if we have the private part of the user signing + // key we should sign and upload a signature for this + // identity. Ok(true) } else {