File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
labs/jack-in/src/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl Details {
51
51
return ;
52
52
} ;
53
53
54
- let name = room_data. name ( ) . unwrap_or_else ( || "unknown" ) . to_owned ( ) ;
54
+ let name = room_data. name ( ) . unwrap_or ( "unknown" ) . to_owned ( ) ;
55
55
56
56
let state_events = room_data
57
57
. required_state ( )
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl MockComponent for Rooms {
64
64
let mut paras = vec ! [ ] ;
65
65
66
66
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( ) ) ] ;
68
68
if let Some ( c) = r. unread_notifications ( ) . notification_count {
69
69
let count: u32 = c. try_into ( ) . unwrap_or_default ( ) ;
70
70
if count > 0 {
You can’t perform that action at this time.
0 commit comments