diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-05 11:33:05 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-05 16:38:24 +0100 |
| commit | c2bbe3349f3c93d63d6408d4df1d190c7890f512 (patch) | |
| tree | cd99e65cc0e4ea1a2afe61ccdd94acfca0cf2fdd /src/libstd/sys/unix/process/process_common.rs | |
| parent | edd3e175d6206946b862f1222c5cc3386b0be873 (diff) | |
| download | rust-c2bbe3349f3c93d63d6408d4df1d190c7890f512.tar.gz rust-c2bbe3349f3c93d63d6408d4df1d190c7890f512.zip | |
Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
Diffstat (limited to 'src/libstd/sys/unix/process/process_common.rs')
| -rw-r--r-- | src/libstd/sys/unix/process/process_common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/process/process_common.rs b/src/libstd/sys/unix/process/process_common.rs index 83f052c898b..859da691ad2 100644 --- a/src/libstd/sys/unix/process/process_common.rs +++ b/src/libstd/sys/unix/process/process_common.rs @@ -19,9 +19,9 @@ cfg_if::cfg_if! { if #[cfg(target_os = "fuchsia")] { // fuchsia doesn't have /dev/null } else if #[cfg(target_os = "redox")] { - const DEV_NULL: &'static str = "null:\0"; + const DEV_NULL: &str = "null:\0"; } else { - const DEV_NULL: &'static str = "/dev/null\0"; + const DEV_NULL: &str = "/dev/null\0"; } } |
