fix: assign lifetime to const str

This commit is contained in:
Compositr 2025-01-17 21:57:52 +11:00
parent 7241a1e8cd
commit 6a3f3cee9d

View file

@ -35,7 +35,7 @@ pub struct Config {
} }
impl Config { impl Config {
const CONFIG_PATHS: [&str; 5] = [ const CONFIG_PATHS: [&'static str; 5] = [
"diaryrs.toml", "diaryrs.toml",
"diary.toml", "diary.toml",
"~/.config/diaryrs.toml", "~/.config/diaryrs.toml",