Update to cap-std 0.17.0. (#3198)

This completes the posish->rsix rename, and contains a number of other
minor cleanups, including avoiding the `cstr` dependency.
This commit is contained in:
Dan Gohman
2021-08-17 16:08:03 -07:00
committed by GitHub
parent e8aa7bb53b
commit fde767fedc
9 changed files with 79 additions and 91 deletions

View File

@@ -112,7 +112,7 @@ impl TryFrom<std::io::Error> for types::Errno {
fn try_from(err: std::io::Error) -> Result<types::Errno, Error> {
#[cfg(unix)]
fn raw_error_code(err: &std::io::Error) -> Option<types::Errno> {
use posish::io::Error;
use rsix::io::Error;
match Error::from_io_error(err) {
Some(Error::PIPE) => Some(types::Errno::Pipe),
Some(Error::PERM) => Some(types::Errno::Perm),