File tree 3 files changed +8
-5
lines changed
bindings/matrix-sdk-ffi/src
matrix-sdk-ui/tests/integration
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ impl ClientBuilder {
425
425
random_dir
426
426
. to_str ( )
427
427
. expect ( "The base path and the uuid both are valid UTF-8 strings" )
428
- . to_string ( ) ,
428
+ . to_owned ( ) ,
429
429
) ;
430
430
431
431
Some ( ( base_directory, random_dir) )
Original file line number Diff line number Diff line change @@ -1296,11 +1296,11 @@ mod tests {
1296
1296
room. heroes = Some ( vec ! [
1297
1297
assign!( v4:: SlidingSyncRoomHero :: default ( ) , {
1298
1298
user_id: Some ( gordon) ,
1299
- name: Some ( "Gordon" . to_string ( ) ) ,
1299
+ name: Some ( "Gordon" . to_owned ( ) ) ,
1300
1300
} ) ,
1301
1301
assign!( v4:: SlidingSyncRoomHero :: default ( ) , {
1302
1302
user_id: Some ( alice) ,
1303
- name: Some ( "Alice" . to_string ( ) ) ,
1303
+ name: Some ( "Alice" . to_owned ( ) ) ,
1304
1304
} ) ,
1305
1305
] ) ;
1306
1306
let response = response_with_room ( room_id, room) . await ;
@@ -1315,7 +1315,7 @@ mod tests {
1315
1315
// And heroes are part of the summary.
1316
1316
assert_eq ! (
1317
1317
client_room. clone_info( ) . summary. heroes( ) ,
1318
- & [ "@gordon:e.uk" . to_string ( ) , "@alice:e.uk" . to_string ( ) ]
1318
+ & [ "@gordon:e.uk" . to_owned ( ) , "@alice:e.uk" . to_owned ( ) ]
1319
1319
) ;
1320
1320
}
1321
1321
Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ macro_rules! sliding_sync_then_assert_request_and_fake_response {
122
122
& json!( { $( $request_json ) * } ) ,
123
123
$crate:: sliding_sync_then_assert_request_and_fake_response!( @assertion_config $sign)
124
124
) {
125
- dbg!( json_value) ;
125
+ #[ allow( clippy:: dbg_macro) ]
126
+ {
127
+ dbg!( json_value) ;
128
+ }
126
129
panic!( "{error}" ) ;
127
130
}
128
131
You can’t perform that action at this time.
0 commit comments