Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)

This commit is contained in:
Matthias Krüger
2020-03-05 11:33:05 +01:00
parent edd3e175d6
commit c2bbe3349f
8 changed files with 14 additions and 14 deletions

View File

@@ -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";
}
}