From 1b0f035a0556f298ce4bbfabec691eee80f562a2 Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 15 Jun 2026 12:13:39 +0200 Subject: [PATCH] matrix: add #[must_use] on room_label per review --- hive-matrix-mcp/src/handlers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hive-matrix-mcp/src/handlers.rs b/hive-matrix-mcp/src/handlers.rs index f9a9f458..eff7bda9 100644 --- a/hive-matrix-mcp/src/handlers.rs +++ b/hive-matrix-mcp/src/handlers.rs @@ -137,6 +137,7 @@ fn extract_body_sync(event: &matrix_sdk::ruma::events::AnySyncTimelineEvent) -> /// Human-facing label for a room: its canonical alias when set, /// otherwise the raw room id. Used wherever a room is named in /// agent-facing text (wake bodies, loose-ends, the unread guard). +#[must_use] pub fn room_label(room: &matrix_sdk::Room) -> String { room.canonical_alias() .map_or_else(|| room.room_id().to_string(), |a| a.to_string())