1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-03 03:31:03 +02:00

refactor: fix new pedantic clippy warnings

This commit is contained in:
Jake Stanger 2023-07-16 20:09:22 +01:00
parent 36abe4073e
commit 06251e293e
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 10 additions and 24 deletions

View file

@ -59,8 +59,7 @@ fn default_popup_format() -> String {
fn default_locale() -> String {
env::var("LC_TIME")
.or_else(|_| env::var("LANG"))
.map(strip_tail)
.unwrap_or_else(|_| "POSIX".to_string())
.map_or_else(|_| "POSIX".to_string(), strip_tail)
}
fn strip_tail(string: String) -> String {