From 14fc20e31e9046b153a93dbfe02402fecd3a37e4 Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 25 Dec 2023 11:04:17 -0500 Subject: [PATCH] cargo fmt Signed-off-by: strawberry --- src/api/client_server/room.rs | 2 +- src/service/rooms/timeline/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/client_server/room.rs b/src/api/client_server/room.rs index b9d22049..d2af99d0 100644 --- a/src/api/client_server/room.rs +++ b/src/api/client_server/room.rs @@ -673,7 +673,7 @@ pub async fn upgrade_room_route( // "creator" key no longer exists in V11 rooms create_event_content.remove("creator"); } - _ => panic!("Unexpected room version {}", body.new_version) + _ => panic!("Unexpected room version {}", body.new_version), } create_event_content.insert( diff --git a/src/service/rooms/timeline/mod.rs b/src/service/rooms/timeline/mod.rs index f7844cdb..e4ba1acf 100644 --- a/src/service/rooms/timeline/mod.rs +++ b/src/service/rooms/timeline/mod.rs @@ -437,7 +437,7 @@ impl Service { self.redact_pdu(redact_id, pdu)?; } } - _ => panic!("Unexpected room version {}", room_version_id) + _ => panic!("Unexpected room version {}", room_version_id), }; } TimelineEventType::SpaceChild => {