File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
crates/matrix-sdk-crypto/src/store Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ mod tests {
2034
2034
. receive_room_key_bundle (
2035
2035
& StoredRoomKeyBundleData {
2036
2036
sender_user : alice. user_id ( ) . to_owned ( ) ,
2037
- sender_key : alice_key. clone ( ) ,
2037
+ sender_key : alice_key,
2038
2038
sender_data : SenderData :: sender_verified (
2039
2039
alice. user_id ( ) ,
2040
2040
device_id ! ( "ALICE" ) ,
@@ -2048,18 +2048,18 @@ mod tests {
2048
2048
file : EncryptedFileInit {
2049
2049
url : owned_mxc_uri ! ( "mxc://example.com/0" ) ,
2050
2050
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 ( ) ,
2054
2054
k : Base64 :: new ( vec ! [ 0u8 ; 128 ] ) ,
2055
2055
ext : true ,
2056
2056
}
2057
2057
. into ( ) ,
2058
2058
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 ] ) ) ]
2060
2060
. into_iter ( )
2061
2061
. collect ( ) ,
2062
- v : "v2" . to_string ( ) ,
2062
+ v : "v2" . to_owned ( ) ,
2063
2063
}
2064
2064
. into ( ) ,
2065
2065
} ,
You can’t perform that action at this time.
0 commit comments