mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 07:56:55 -04:00
refactor: Use inline format arguments more
Automated with cargo clippy --fix --workspace --all-targets.
This commit is contained in:
committed by
Damir Jelić
parent
4705389ab7
commit
8eec683793
@@ -37,7 +37,7 @@ async fn test_room_directory_search_filter() -> Result<()> {
|
||||
for index in 0..25 {
|
||||
let mut request: CreateRoomRequest = CreateRoomRequest::new();
|
||||
request.visibility = Visibility::Public;
|
||||
let name = format!("{}_{}", search_string, index);
|
||||
let name = format!("{search_string}_{index}");
|
||||
warn!("room name: {}", name);
|
||||
request.name = Some(name);
|
||||
alice.create_room(request).await?;
|
||||
|
||||
@@ -172,7 +172,7 @@ async fn test_removing_published_room_alias() -> anyhow::Result<()> {
|
||||
|
||||
// We'll add a room alias to it
|
||||
let random_id: u128 = random();
|
||||
let local_part_room_alias = format!("a-room-alias-{}", random_id);
|
||||
let local_part_room_alias = format!("a-room-alias-{random_id}");
|
||||
let raw_room_alias = format!("#{local_part_room_alias}:{server_name}");
|
||||
let room_alias = RoomAliasId::parse(raw_room_alias).expect("The room alias should be valid");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user