Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Sep 30, 2023
1 parent 2d8c64c commit 72da6a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bundle/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Mutex;

pub async fn run(port: u32) {
let db_path = aw_server::dirs::db_path(false)
.map_err(|_| anyhow!("DB path is not found"))
.map_err(|()| anyhow!("DB path is not found"))
.unwrap()
.to_str()
.unwrap()
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ async fn main() -> anyhow::Result<()> {
_ = bundle_handle => Ok(()),
_ = tokio::spawn(idle_future) => Ok(()),
_ = tokio::spawn(active_window_future) => Ok(()),
_ = sigterm => Ok(()),
_ = sigint => Ok(()),
() = sigterm => Ok(()),
() = sigint => Ok(()),
_ = shutdown_recv.recv() => Ok(()),
)
}
Expand Down

0 comments on commit 72da6a7

Please sign in to comment.