Skip to content

Commit ecc017b

Browse files
committed
fixup: map_or_else to map_or
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent 3c2b726 commit ecc017b

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
@@ -103,12 +103,12 @@ impl GuestView {
103103
let filename = ctx
104104
.filename
105105
.as_ref()
106-
.map_or_else(|| "<unknown>".to_string(), |s| s.to_string());
106+
.map_or(|| "<unknown>".to_string(), |s| s.to_string());
107107

108108
let cmd = ctx
109109
.binary
110110
.as_ref()
111-
.map_or_else(|| "<unknown>".to_string(), |s| s.to_string());
111+
.map_or(|| "<unknown>".to_string(), |s| s.to_string());
112112

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

0 commit comments

Comments
 (0)