From 44cf917ecf285cb85cdacf3575293ce124ce7c92 Mon Sep 17 00:00:00 2001 From: Ryze <50497128+ryze312@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:32:00 +0300 Subject: [PATCH] Specify static lifetime in CONFIG_FILENAME --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 6dc679c..d15f49e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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()