about summary refs log tree commit diff
path: root/library/std/src/path.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/path.rs
parent6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff)
downloadrust-845311a065a5638c516ed96c73b09862b176b329.tar.gz
rust-845311a065a5638c516ed96c73b09862b176b329.zip
remove deprecated Error::description in impls
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 3899fbf86db..470d300d2d9 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -3677,19 +3677,13 @@ impl_cmp_os_str!(<'a> Cow<'a, Path>, OsString);
 
 #[stable(since = "1.7.0", feature = "strip_prefix")]
 impl fmt::Display for StripPrefixError {
-    #[allow(deprecated, deprecated_in_future)]
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        self.description().fmt(f)
+        "prefix not found".fmt(f)
     }
 }
 
 #[stable(since = "1.7.0", feature = "strip_prefix")]
-impl Error for StripPrefixError {
-    #[allow(deprecated)]
-    fn description(&self) -> &str {
-        "prefix not found"
-    }
-}
+impl Error for StripPrefixError {}
 
 #[unstable(feature = "normalize_lexically", issue = "134694")]
 impl fmt::Display for NormalizeError {