Specify static lifetime in CONFIG_FILENAME

This commit is contained in:
Ryze 2024-02-14 09:32:00 +03:00
parent 3566df75e7
commit 44cf917ecf

View file

@ -22,7 +22,7 @@ impl Default for Config {
}
impl Config {
const CONFIG_FILENAME: &str = "ff2mpv-rust.json";
const CONFIG_FILENAME: &'static str = "ff2mpv-rust.json";
pub fn build() -> Self {
Config::parse_config_file().unwrap_or_default()