Skip to content

Commit

Permalink
fix: clippy import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
torrybr committed Jul 26, 2024
1 parent 2394438 commit 7e5919f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/matrix-sdk/tests/integration/room/joined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use matrix_sdk::{
use matrix_sdk_base::{deserialized_responses::AnySyncOrStrippedState, RoomState};
use matrix_sdk_test::{
async_test, test_json,
test_json::{sync::CUSTOM_ROOM_POWER_LEVELS, SYNC},
test_json::{sync::CUSTOM_ROOM_POWER_LEVELS},
EphemeralTestEvent, GlobalAccountDataTestEvent, JoinedRoomBuilder, SyncResponseBuilder,
DEFAULT_TEST_ROOM_ID,
};
Expand Down Expand Up @@ -1077,7 +1077,7 @@ async fn test_send_location_beacon() {

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

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

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

mock_sync(&server, &*SYNC, None).await;
mock_sync(&server, &*test_json::SYNC, None).await;

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

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

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

assert!(result.is_err());
}

0 comments on commit 7e5919f

Please sign in to comment.