diff --git a/matrix_sdk_crypto/src/gossiping/machine.rs b/matrix_sdk_crypto/src/gossiping/machine.rs index aa64a712..818b7959 100644 --- a/matrix_sdk_crypto/src/gossiping/machine.rs +++ b/matrix_sdk_crypto/src/gossiping/machine.rs @@ -1306,8 +1306,8 @@ mod test { .await .unwrap(); group_session.mark_shared_with( - &alice_device.user_id(), - &alice_device.device_id(), + alice_device.user_id(), + alice_device.device_id(), alice_device.get_key(DeviceKeyAlgorithm::Curve25519).unwrap(), ); diff --git a/matrix_sdk_crypto/src/identities/user.rs b/matrix_sdk_crypto/src/identities/user.rs index 11c21105..25f7e17b 100644 --- a/matrix_sdk_crypto/src/identities/user.rs +++ b/matrix_sdk_crypto/src/identities/user.rs @@ -1022,7 +1022,7 @@ pub(crate) mod test { Arc::new(Mutex::new(PrivateCrossSigningIdentity::empty(second.user_id().clone()))); let verification_machine = VerificationMachine::new( ReadOnlyAccount::new(second.user_id(), second.device_id()), - private_identity.clone(), + private_identity, Arc::new(MemoryStore::new()), ); diff --git a/matrix_sdk_crypto/src/verification/requests.rs b/matrix_sdk_crypto/src/verification/requests.rs index 63a3a7e7..603967ee 100644 --- a/matrix_sdk_crypto/src/verification/requests.rs +++ b/matrix_sdk_crypto/src/verification/requests.rs @@ -1282,7 +1282,7 @@ mod test { let alice_store: Box = Box::new(MemoryStore::new()); let alice_identity = PrivateCrossSigningIdentity::empty(alice_id()); - let alice_store = VerificationStore { account: alice.clone(), inner: alice_store.into() }; + let alice_store = VerificationStore { account: alice, inner: alice_store.into() }; let bob = ReadOnlyAccount::new(&bob_id(), &bob_device_id()); let bob_store: Box = Box::new(MemoryStore::new()); @@ -1308,7 +1308,7 @@ mod test { let alice_request = VerificationRequest::from_request( VerificationCache::new(), alice_identity, - alice_store.into(), + alice_store, &bob_id(), flow_id, &(&content).into(), @@ -1358,7 +1358,7 @@ mod test { let bob_request = VerificationRequest::new( VerificationCache::new(), bob_identity, - bob_store.into(), + bob_store, flow_id.clone(), &alice_id(), vec![], @@ -1368,7 +1368,7 @@ mod test { let alice_request = VerificationRequest::from_request( VerificationCache::new(), alice_identity, - alice_store.into(), + alice_store, &bob_id(), flow_id, &(&content).into(), @@ -1425,7 +1425,7 @@ mod test { let bob_request = VerificationRequest::new( VerificationCache::new(), bob_identity, - bob_store.into(), + bob_store, flow_id, &alice_id(), vec![], @@ -1440,7 +1440,7 @@ mod test { let alice_request = VerificationRequest::from_request( VerificationCache::new(), alice_identity, - alice_store.into(), + alice_store, &bob_id(), flow_id, &content,