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:
parent
36abe4073e
commit
06251e293e
4 changed files with 10 additions and 24 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue