Remove return statements in Fuseable impl for room search.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
projectmoon 2021-05-29 14:49:24 +00:00
parent 0c0ddafd03
commit 7050cf037a
1 changed files with 4 additions and 4 deletions

View File

@ -20,17 +20,17 @@ struct RoomNameAndId {
/// searching room display names directly.
impl Fuseable for RoomNameAndId {
fn properties(&self) -> Vec<FuseProperty> {
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,
};
}
}
}