Clippy suggestions

This commit is contained in:
Marco De Araujo 2026-01-19 06:28:25 -04:00
parent 00cb8f7a9b
commit c48a37d56a
5 changed files with 22 additions and 22 deletions

View file

@ -34,7 +34,7 @@ pub fn t(key: &str) -> String {
}
}
let result = LOCALES.lookup(&*get_system_locale(), key);
let result = LOCALES.lookup(get_system_locale(), key);
let mut cache_write = cache.write().unwrap();
@ -51,5 +51,5 @@ pub fn t_with_args(key: &str, args: &HashMap<&'static str, String>) -> String {
for (key, value) in args {
map.insert(Cow::Borrowed(*key), FluentValue::from(value));
}
LOCALES.lookup_with_args(&get_system_locale(), key, &map)
LOCALES.lookup_with_args(get_system_locale(), key, &map)
}