mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-06 11:35:46 +00:00
Fix clippy
This commit is contained in:
parent
2d8c64c42c
commit
72da6a73cb
@ -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()
|
||||
|
@ -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(()),
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user