chore: Make Clippy happy.

This commit is contained in:
Ivan Enderlin 2023-02-09 16:16:31 +01:00
parent 4e1fe3bec4
commit 0f7646ade1
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ impl Details {
return;
};
let name = room_data.name().unwrap_or_else(|| "unknown").to_owned();
let name = room_data.name().unwrap_or("unknown").to_owned();
let state_events = room_data
.required_state()

View File

@ -64,7 +64,7 @@ impl MockComponent for Rooms {
let mut paras = vec![];
for r in self.sstate.get_all_rooms() {
let mut cells = vec![Cell::from(r.name().unwrap_or_else(|| "unknown").to_owned())];
let mut cells = vec![Cell::from(r.name().unwrap_or("unknown").to_owned())];
if let Some(c) = r.unread_notifications().notification_count {
let count: u32 = c.try_into().unwrap_or_default();
if count > 0 {