Skip to content

Commit

Permalink
clippy & format
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Apr 18, 2024
1 parent 6d72b30 commit 6c980ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,17 @@ pub(crate) fn open_config_file() -> Result<()> {
.spawn()
.map_err(|err| anyhow!("Failed to open config file '{}', {err}", filepath.display()))?
.wait()
.map_err(|err| anyhow!("Failed to close config file '{}', {err}", filepath.display()))?;
.map_err(|err| {
anyhow!(
"Failed to close config file '{}', {err}",
filepath.display()
)
})?;

if exit.success() {
// restart
}

Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ mod startup;
mod trayicon;

pub use crate::app::start;
pub use crate::config::{Config, load_config};
pub use crate::config::{load_config, Config};
2 changes: 1 addition & 1 deletion src/trayicon.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::app::{IDM_EXIT, IDM_STARTUP, IDM_CONFIGURE, NAME, WM_USER_TRAYICON};
use crate::app::{IDM_CONFIGURE, IDM_EXIT, IDM_STARTUP, NAME, WM_USER_TRAYICON};

use anyhow::{anyhow, Result};
use windows::core::w;
Expand Down

0 comments on commit 6c980ec

Please sign in to comment.