chore: Make Clippy happy.
This commit is contained in:
parent
4e1fe3bec4
commit
0f7646ade1
|
@ -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()
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue