mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 11:11:04 +02:00
refactor: fix a few new clippy warnings
This commit is contained in:
parent
9d09855fce
commit
e63509a3a7
3 changed files with 9 additions and 10 deletions
|
@ -60,10 +60,10 @@ async fn main() -> Result<()> {
|
|||
|display| display,
|
||||
);
|
||||
|
||||
let config_res = match env::var("IRONBAR_CONFIG") {
|
||||
Ok(path) => ConfigLoader::load(path),
|
||||
Err(_) => ConfigLoader::new("ironbar").find_and_load(),
|
||||
};
|
||||
let config_res = env::var("IRONBAR_CONFIG").map_or_else(
|
||||
|_| ConfigLoader::new("ironbar").find_and_load(),
|
||||
ConfigLoader::load,
|
||||
);
|
||||
|
||||
let config = match config_res {
|
||||
Ok(config) => config,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue