From 7050cf037aa2fb89f967fc1bcbbc7761fc4bf0a5 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Sat, 29 May 2021 14:49:24 +0000 Subject: [PATCH] Remove return statements in Fuseable impl for room search. --- src/commands/rooms.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/rooms.rs b/src/commands/rooms.rs index eaa147b..e53d62b 100644 --- a/src/commands/rooms.rs +++ b/src/commands/rooms.rs @@ -20,17 +20,17 @@ struct RoomNameAndId { /// searching room display names directly. impl Fuseable for RoomNameAndId { fn properties(&self) -> Vec { - return vec![FuseProperty { + vec![FuseProperty { value: String::from("name"), weight: 1.0, - }]; + }] } fn lookup(&self, key: &str) -> Option<&str> { - return match key { + match key { "name" => Some(&self.name), _ => None, - }; + } } }