diff options
Diffstat (limited to 'vendor/snapbox/src/bin')
-rw-r--r-- | vendor/snapbox/src/bin/snap-fixture.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/snapbox/src/bin/snap-fixture.rs b/vendor/snapbox/src/bin/snap-fixture.rs index 6e13448a7..7e21fc647 100644 --- a/vendor/snapbox/src/bin/snap-fixture.rs +++ b/vendor/snapbox/src/bin/snap-fixture.rs @@ -43,7 +43,8 @@ fn run() -> Result<(), Box<dyn Error>> { let code = env::var("exit") .ok() .map(|v| v.parse::<i32>()) - .map_or(Ok(None), |r| r.map(Some))? + .map(|r| r.map(Some)) + .unwrap_or(Ok(None))? .unwrap_or(0); process::exit(code); } |