Skip to content

Commit

Permalink
refactor result mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Dec 21, 2024
1 parent d3d1251 commit 1a14908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/live_reload/host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn run_module() -> AnyErrorResult {
// when unloading fails it is not safe to load it again
module
.unload()
.or_else(|e| Err(format!("module unloading failed: {e:#}")))?;
.map_err(|e| format!("module unloading failed: {e:#}"))?;

Ok(())
}
Expand Down

0 comments on commit 1a14908

Please sign in to comment.