Skip to content

Commit 6842fb9

Browse files
committed
chore(crypto-js): Make Clippy happy.
1 parent 8027a30 commit 6842fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/matrix-sdk-crypto-js/src/vodozemac.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl DeviceKey {
142142
use matrix_sdk_crypto::types::DeviceKey::*;
143143

144144
match &self.inner {
145-
Curve25519(key) => Some(key.clone().into()),
145+
Curve25519(key) => Some((*key).into()),
146146
_ => None,
147147
}
148148
}
@@ -153,7 +153,7 @@ impl DeviceKey {
153153
use matrix_sdk_crypto::types::DeviceKey::*;
154154

155155
match &self.inner {
156-
Ed25519(key) => Some(key.clone().into()),
156+
Ed25519(key) => Some((*key).into()),
157157
_ => None,
158158
}
159159
}

0 commit comments

Comments
 (0)