Skip to content

Commit 0f7646a

Browse files
committed
chore: Make Clippy happy.
1 parent 4e1fe3b commit 0f7646a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

labs/jack-in/src/components/details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Details {
5151
return;
5252
};
5353

54-
let name = room_data.name().unwrap_or_else(|| "unknown").to_owned();
54+
let name = room_data.name().unwrap_or("unknown").to_owned();
5555

5656
let state_events = room_data
5757
.required_state()

labs/jack-in/src/components/rooms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl MockComponent for Rooms {
6464
let mut paras = vec![];
6565

6666
for r in self.sstate.get_all_rooms() {
67-
let mut cells = vec![Cell::from(r.name().unwrap_or_else(|| "unknown").to_owned())];
67+
let mut cells = vec![Cell::from(r.name().unwrap_or("unknown").to_owned())];
6868
if let Some(c) = r.unread_notifications().notification_count {
6969
let count: u32 = c.try_into().unwrap_or_default();
7070
if count > 0 {

0 commit comments

Comments
 (0)