mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-25 01:02:20 -04:00
chore(crypto) Make Clippy happy.
This commit is contained in:
@@ -686,7 +686,7 @@ impl ReadOnlyUserIdentity {
|
||||
) -> Result<Self, SignatureError> {
|
||||
master_key.verify_subkey(&self_signing_key)?;
|
||||
|
||||
Ok(Self { user_id: (&*master_key.0.user_id).into(), master_key, self_signing_key })
|
||||
Ok(Self { user_id: (*master_key.0.user_id).into(), master_key, self_signing_key })
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -799,7 +799,7 @@ impl ReadOnlyOwnUserIdentity {
|
||||
master_key.verify_subkey(&user_signing_key)?;
|
||||
|
||||
Ok(Self {
|
||||
user_id: (&*master_key.0.user_id).into(),
|
||||
user_id: (*master_key.0.user_id).into(),
|
||||
master_key,
|
||||
self_signing_key,
|
||||
user_signing_key,
|
||||
|
||||
@@ -729,8 +729,8 @@ impl ReadOnlyAccount {
|
||||
let identity_keys = account.identity_keys();
|
||||
|
||||
Ok(Self {
|
||||
user_id: (&*pickle.user_id).into(),
|
||||
device_id: (&*pickle.device_id).into(),
|
||||
user_id: (*pickle.user_id).into(),
|
||||
device_id: (*pickle.device_id).into(),
|
||||
inner: Arc::new(Mutex::new(account)),
|
||||
identity_keys: Arc::new(identity_keys),
|
||||
shared: Arc::new(AtomicBool::from(pickle.shared)),
|
||||
|
||||
@@ -180,7 +180,7 @@ impl InboundGroupSession {
|
||||
first_known_index,
|
||||
history_visibility: None.into(),
|
||||
signing_keys: sender_claimed_key.into(),
|
||||
room_id: (&*content.room_id).into(),
|
||||
room_id: (*content.room_id).into(),
|
||||
forwarding_chains: forwarding_chains.into(),
|
||||
imported: true,
|
||||
backed_up: AtomicBool::new(false).into(),
|
||||
@@ -292,7 +292,7 @@ impl InboundGroupSession {
|
||||
history_visibility: pickle.history_visibility.into(),
|
||||
first_known_index,
|
||||
signing_keys: pickle.signing_key.into(),
|
||||
room_id: (&*pickle.room_id).into(),
|
||||
room_id: (*pickle.room_id).into(),
|
||||
forwarding_chains: pickle.forwarding_chains.into(),
|
||||
backed_up: AtomicBool::from(pickle.backed_up).into(),
|
||||
imported: pickle.imported,
|
||||
@@ -447,7 +447,7 @@ impl From<ExportedRoomKey> for InboundGroupSession {
|
||||
history_visibility: None.into(),
|
||||
first_known_index,
|
||||
signing_keys: key.sender_claimed_keys.into(),
|
||||
room_id: (&*key.room_id).into(),
|
||||
room_id: (*key.room_id).into(),
|
||||
forwarding_chains: key.forwarding_curve25519_key_chain.into(),
|
||||
imported: true,
|
||||
backed_up: AtomicBool::from(false).into(),
|
||||
|
||||
@@ -633,7 +633,7 @@ impl PrivateCrossSigningIdentity {
|
||||
let user_signing = keys.user_signing_key.map(UserSigning::from_pickle).transpose()?;
|
||||
|
||||
Ok(Self {
|
||||
user_id: (&*pickle.user_id).into(),
|
||||
user_id: (*pickle.user_id).into(),
|
||||
shared: Arc::new(AtomicBool::from(pickle.shared)),
|
||||
master_key: Arc::new(Mutex::new(master)),
|
||||
self_signing_key: Arc::new(Mutex::new(self_signing)),
|
||||
|
||||
@@ -579,7 +579,7 @@ impl Deref for Store {
|
||||
type Target = dyn CryptoStore;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&*self.inner
|
||||
self.inner.deref()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ mod qrcode;
|
||||
mod requests;
|
||||
mod sas;
|
||||
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
use std::{collections::HashMap, ops::Deref, sync::Arc};
|
||||
|
||||
use event_enums::OutgoingContent;
|
||||
pub use machine::VerificationMachine;
|
||||
@@ -148,7 +148,7 @@ impl VerificationStore {
|
||||
}
|
||||
|
||||
pub fn inner(&self) -> &dyn CryptoStore {
|
||||
&*self.inner
|
||||
self.inner.deref()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user