diff options
Diffstat (limited to 'src/service/rooms/state/mod.rs')
-rw-r--r-- | src/service/rooms/state/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/rooms/state/mod.rs b/src/service/rooms/state/mod.rs index 9790695..16e0a04 100644 --- a/src/service/rooms/state/mod.rs +++ b/src/service/rooms/state/mod.rs @@ -342,7 +342,7 @@ impl Service { .transpose()?; let room_version = create_event_content .map(|create_event| create_event.room_version) - .ok_or({ + .ok_or_else(|| { warn!("Invalid room version for room {room_id}"); Error::BadDatabase("Invalid room version") })?; |