We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fbd7b5 commit ccc153eCopy full SHA for ccc153e
crates/vm/src/stdlib/posix.rs
@@ -487,8 +487,8 @@ pub mod module {
487
488
nix::unistd::chroot(&*path.path).map_err(|err| {
489
// 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)
+ let io_err: io::Error = err.into();
+ OSErrorBuilder::with_filename(&io_err, path, vm)
492
})
493
}
494
0 commit comments