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

refactor: clippy & fmt

This commit is contained in:
Jake Stanger 2022-11-05 17:32:42 +00:00
parent ad77dc4e4c
commit bc625b929b
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
2 changed files with 13 additions and 13 deletions

View file

@ -95,10 +95,8 @@ async fn main() -> Result<()> {
debug!("Created bars");
let style_path = env::var("IRONBAR_CSS")
.ok()
.map(PathBuf::from)
.unwrap_or_else(|| {
let style_path = env::var("IRONBAR_CSS").ok().map_or_else(
|| {
config_dir().map_or_else(
|| {
let report = Report::msg("Failed to locate user config dir");
@ -107,7 +105,9 @@ async fn main() -> Result<()> {
},
|dir| dir.join("ironbar").join("style.css"),
)
});
},
PathBuf::from,
);
if style_path.exists() {
load_css(style_path);