Skip to content

Commit

Permalink
Avoid std::io::Error::other helper introduced in Rust 1.74.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Apr 27, 2024
1 parent 028dd68 commit 0bdf9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/path.rs
Expand Up @@ -161,7 +161,7 @@ impl StrictPath {

pub fn as_std_path_buf(&self) -> Result<std::path::PathBuf, std::io::Error> {
Ok(std::path::PathBuf::from(&self.interpret().map_err(|_| {
std::io::Error::other(format!("Cannot interpret path: {:?}", &self))
std::io::Error::new(std::io::ErrorKind::Other, format!("Cannot interpret path: {:?}", &self))
})?))
}

Expand Down

0 comments on commit 0bdf9aa

Please sign in to comment.