Skip to content

Commit ccc153e

Browse files
committed
try review suggestion
1 parent 6fbd7b5 commit ccc153e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/vm/src/stdlib/posix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ pub mod module {
487487

488488
nix::unistd::chroot(&*path.path).map_err(|err| {
489489
// Use `From<nix::Error> for io::Error` when it is available
490-
let err = io::Error::from_raw_os_error(err as i32);
491-
OSErrorBuilder::with_filename(&err, path, vm)
490+
let io_err: io::Error = err.into();
491+
OSErrorBuilder::with_filename(&io_err, path, vm)
492492
})
493493
}
494494

0 commit comments

Comments
 (0)