Skip to content

Commit 7e5919f

Browse files
committed
fix: clippy import issue
1 parent 2394438 commit 7e5919f

File tree

1 file changed

+4
-4
lines changed
  • crates/matrix-sdk/tests/integration/room

1 file changed

+4
-4
lines changed

crates/matrix-sdk/tests/integration/room/joined.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use matrix_sdk::{
1414
use matrix_sdk_base::{deserialized_responses::AnySyncOrStrippedState, RoomState};
1515
use matrix_sdk_test::{
1616
async_test, test_json,
17-
test_json::{sync::CUSTOM_ROOM_POWER_LEVELS, SYNC},
17+
test_json::{sync::CUSTOM_ROOM_POWER_LEVELS},
1818
EphemeralTestEvent, GlobalAccountDataTestEvent, JoinedRoomBuilder, SyncResponseBuilder,
1919
DEFAULT_TEST_ROOM_ID,
2020
};
@@ -1077,7 +1077,7 @@ async fn test_send_location_beacon() {
10771077

10781078
let room = client.get_room(&DEFAULT_TEST_ROOM_ID).unwrap();
10791079

1080-
let response = room.send_location_beacon("geo:48.8588448,2.2943506".to_string()).await.unwrap();
1080+
let response = room.send_location_beacon("geo:48.8588448,2.2943506".to_owned()).await.unwrap();
10811081

10821082
assert_eq!(event_id!("$h29iv0s8:example.com"), response.event_id)
10831083
}
@@ -1086,14 +1086,14 @@ async fn test_send_location_beacon() {
10861086
async fn test_send_location_beacon_fails_without_starting_live_share() {
10871087
let (client, server) = logged_in_client_with_server().await;
10881088

1089-
mock_sync(&server, &*SYNC, None).await;
1089+
mock_sync(&server, &*test_json::SYNC, None).await;
10901090

10911091
let sync_settings = SyncSettings::new().timeout(Duration::from_millis(3000));
10921092
client.sync_once(sync_settings).await.unwrap();
10931093

10941094
let room = client.get_room(&DEFAULT_TEST_ROOM_ID).unwrap();
10951095

1096-
let result = room.send_location_beacon("geo:48.8588448,2.2943506".to_string()).await;
1096+
let result = room.send_location_beacon("geo:48.8588448,2.2943506".to_owned()).await;
10971097

10981098
assert!(result.is_err());
10991099
}

0 commit comments

Comments
 (0)