crypto: Fix a clippy warning.

master
Damir Jelić 2020-08-19 14:40:04 +02:00
parent 317a141e07
commit c2a386b889
1 changed files with 6 additions and 9 deletions

View File

@ -226,16 +226,13 @@ impl Sas {
identity.user_id(), identity.user_id(),
); );
match &identity { if let UserIdentities::Own(i) = &identity {
UserIdentities::Own(i) => {
i.mark_as_verified(); i.mark_as_verified();
self.store.save_user_identities(&[identity]).await?; self.store.save_user_identities(&[identity]).await?;
} }
// TODO if we have the private part of the user signing // TODO if we have the private part of the user signing
// key we should sign and upload a signature for this // key we should sign and upload a signature for this
// identity. // identity.
_ => {}
}
Ok(true) Ok(true)
} else { } else {