clippy: string constants do not need to have static lifetime (const_static_lifetime).

This commit is contained in:
Matthias Krüger 2017-11-29 14:52:53 +01:00 committed by Joe Wilm
parent b2c7fa7ee9
commit 9e6dd81ad9
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ use config::{Dimensions, Shell};
use std::path::{Path, PathBuf};
use std::borrow::Cow;
const DEFAULT_TITLE: &'static str = "Alacritty";
const DEFAULT_TITLE: &str = "Alacritty";
fn crate_long_version() -> String {
format!("{} (git commit {}) [{} build using {}])",

View File

@ -731,7 +731,7 @@ impl<'a> de::Deserialize<'a> for RawBinding {
}
}
const FIELDS: &'static [&'static str] = &[
const FIELDS: &[&str] = &[
"key", "mods", "mode", "action", "chars", "mouse", "command",
];