diff options
| author | Marijn Schouten <mhkbst@gmail.com> | 2025-08-23 19:36:19 +0000 |
|---|---|---|
| committer | Marijn Schouten <mhkbst@gmail.com> | 2025-08-26 06:36:53 +0000 |
| commit | 845311a065a5638c516ed96c73b09862b176b329 (patch) | |
| tree | a53242a98adddb23ece0ff83ade5bb4d6663d47a /library/std/src/env.rs | |
| parent | 6d6a08cf590ec26296447b8d2cf2329bb64c303a (diff) | |
| download | rust-845311a065a5638c516ed96c73b09862b176b329.tar.gz rust-845311a065a5638c516ed96c73b09862b176b329.zip | |
remove deprecated Error::description in impls
Diffstat (limited to 'library/std/src/env.rs')
| -rw-r--r-- | library/std/src/env.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/library/std/src/env.rs b/library/std/src/env.rs index 9f17ff76445..e457cd61c75 100644 --- a/library/std/src/env.rs +++ b/library/std/src/env.rs @@ -296,15 +296,7 @@ impl fmt::Display for VarError { } #[stable(feature = "env", since = "1.0.0")] -impl Error for VarError { - #[allow(deprecated)] - fn description(&self) -> &str { - match *self { - VarError::NotPresent => "environment variable not found", - VarError::NotUnicode(..) => "environment variable was not valid unicode", - } - } -} +impl Error for VarError {} /// Sets the environment variable `key` to the value `value` for the currently running /// process. |
