Fix clippy

This commit is contained in:
Demmie 2023-09-29 20:54:46 -04:00
parent 2d8c64c42c
commit 72da6a73cb
No known key found for this signature in database
GPG Key ID: B06DAA3D432C6E9A
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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(()),
)
}