Skip to content

Commit 7ef47d2

Browse files
committed
fix: Clippy lints, copy over clone, to_owned.
1 parent e635219 commit 7ef47d2

File tree

1 file changed

+6
-6
lines changed
  • crates/matrix-sdk-crypto/src/store

1 file changed

+6
-6
lines changed

crates/matrix-sdk-crypto/src/store/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ mod tests {
20342034
.receive_room_key_bundle(
20352035
&StoredRoomKeyBundleData {
20362036
sender_user: alice.user_id().to_owned(),
2037-
sender_key: alice_key.clone(),
2037+
sender_key: alice_key,
20382038
sender_data: SenderData::sender_verified(
20392039
alice.user_id(),
20402040
device_id!("ALICE"),
@@ -2048,18 +2048,18 @@ mod tests {
20482048
file: EncryptedFileInit {
20492049
url: owned_mxc_uri!("mxc://example.com/0"),
20502050
key: JsonWebKeyInit {
2051-
kty: "oct".to_string(),
2052-
key_ops: vec!["encrypt".to_string(), "decrypt".to_string()],
2053-
alg: "A256CTR.".to_string(),
2051+
kty: "oct".to_owned(),
2052+
key_ops: vec!["encrypt".to_owned(), "decrypt".to_owned()],
2053+
alg: "A256CTR.".to_owned(),
20542054
k: Base64::new(vec![0u8; 128]),
20552055
ext: true,
20562056
}
20572057
.into(),
20582058
iv: Base64::new(vec![0u8; 128]),
2059-
hashes: vec![("sha256".to_string(), Base64::new(vec![0u8; 128]))]
2059+
hashes: vec![("sha256".to_owned(), Base64::new(vec![0u8; 128]))]
20602060
.into_iter()
20612061
.collect(),
2062-
v: "v2".to_string(),
2062+
v: "v2".to_owned(),
20632063
}
20642064
.into(),
20652065
},

0 commit comments

Comments
 (0)