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:
parent
ad77dc4e4c
commit
bc625b929b
2 changed files with 13 additions and 13 deletions
10
src/main.rs
10
src/main.rs
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue