Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torrybr committed Jul 23, 2024
1 parent 454f62f commit 6ae1932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/matrix-sdk/tests/integration/room/joined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ async fn test_start_live_location_share_for_room() {
let room = client.get_room(&DEFAULT_TEST_ROOM_ID).unwrap();

let response =
room.start_live_location_share(3000, Some("Live Share".to_string())).await.unwrap();
room.start_live_location_share(3000, Some("Live Share".to_owned())).await.unwrap();

// Verify the event is correctly sent.
assert_eq!(event_id!("$h29iv0s8:example.com"), response.event_id);
Expand Down Expand Up @@ -848,7 +848,7 @@ async fn test_start_live_location_share_for_room() {
assert_eq!(e.state_key(), "@example:localhost");
assert_eq!(e.event_id(), event_id!("$15139375514XsgmR:localhost"));

assert_eq!(content.description, Some("Live Share".to_string()));
assert_eq!(content.description, Some("Live Share".to_owned()));
assert_eq!(content.timeout, Duration::from_millis(3000));
assert!(content.live);
}
Expand Down

0 comments on commit 6ae1932

Please sign in to comment.