Skip to content

Commit f8c586d

Browse files
linkStclaude
andcommitted
fix(sandbox): use is_ok_and instead of map+unwrap_or for clippy
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 1b51a3b commit f8c586d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

rust/crates/runtime/src/sandbox.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ fn unshare_user_namespace_works() -> bool {
299299
.stdout(std::process::Stdio::null())
300300
.stderr(std::process::Stdio::null())
301301
.status()
302-
.map(|s| s.success())
303-
.unwrap_or(false)
302+
.is_ok_and(|s| s.success())
304303
})
305304
}
306305

0 commit comments

Comments
 (0)