From 7e5919fc6d70eb6051751657f814256c5106f5d3 Mon Sep 17 00:00:00 2001 From: torrybr <16907963+torrybr@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:18:56 -0400 Subject: [PATCH] fix: clippy import issue --- crates/matrix-sdk/tests/integration/room/joined.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk/tests/integration/room/joined.rs b/crates/matrix-sdk/tests/integration/room/joined.rs index 025856c054d..0d649241955 100644 --- a/crates/matrix-sdk/tests/integration/room/joined.rs +++ b/crates/matrix-sdk/tests/integration/room/joined.rs @@ -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, }; @@ -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) } @@ -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()); }