about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/os.rs
diff options
context:
space:
mode:
authorMarijn Schouten <mhkbst@gmail.com>2025-08-23 19:36:19 +0000
committerMarijn Schouten <mhkbst@gmail.com>2025-08-26 06:36:53 +0000
commit845311a065a5638c516ed96c73b09862b176b329 (patch)
treea53242a98adddb23ece0ff83ade5bb4d6663d47a /library/std/src/sys/pal/unix/os.rs
parent6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff)
downloadrust-845311a065a5638c516ed96c73b09862b176b329.tar.gz
rust-845311a065a5638c516ed96c73b09862b176b329.zip
remove deprecated Error::description in impls
Diffstat (limited to 'library/std/src/sys/pal/unix/os.rs')
-rw-r--r--library/std/src/sys/pal/unix/os.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/library/std/src/sys/pal/unix/os.rs b/library/std/src/sys/pal/unix/os.rs
index 1110b775c09..81275afa707 100644
--- a/library/std/src/sys/pal/unix/os.rs
+++ b/library/std/src/sys/pal/unix/os.rs
@@ -7,7 +7,6 @@ mod tests;
 
 use libc::{c_char, c_int, c_void};
 
-use crate::error::Error as StdError;
 use crate::ffi::{CStr, OsStr, OsString};
 use crate::os::unix::prelude::*;
 use crate::path::{self, PathBuf};
@@ -248,12 +247,7 @@ impl fmt::Display for JoinPathsError {
     }
 }
 
-impl StdError for JoinPathsError {
-    #[allow(deprecated)]
-    fn description(&self) -> &str {
-        "failed to join paths"
-    }
-}
+impl crate::error::Error for JoinPathsError {}
 
 #[cfg(target_os = "aix")]
 pub fn current_exe() -> io::Result<PathBuf> {