Skip to content

Commit 9fcf76c

Browse files
committed
fixup: map_or_else to map_or
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent 2eda74c commit 9fcf76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperlight_host/src/hypervisor/crashdump.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ impl GuestView {
8787
let filename = ctx
8888
.filename
8989
.as_ref()
90-
.map_or_else(|| "<unknown>".to_string(), |s| s.to_string());
90+
.map_or(|| "<unknown>".to_string(), |s| s.to_string());
9191

9292
let cmd = ctx
9393
.binary
9494
.as_ref()
95-
.map_or_else(|| "<unknown>".to_string(), |s| s.to_string());
95+
.map_or(|| "<unknown>".to_string(), |s| s.to_string());
9696

9797
// The xsave state is checked as it can be empty
9898
let mut components = vec![];

0 commit comments

Comments
 (0)