Clippy suggestions
This commit is contained in:
parent
00cb8f7a9b
commit
c48a37d56a
5 changed files with 22 additions and 22 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue