mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-07 12:05:49 +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) {
|
pub async fn run(port: u32) {
|
||||||
let db_path = aw_server::dirs::db_path(false)
|
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()
|
.unwrap()
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
@ -77,8 +77,8 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
_ = bundle_handle => Ok(()),
|
_ = bundle_handle => Ok(()),
|
||||||
_ = tokio::spawn(idle_future) => Ok(()),
|
_ = tokio::spawn(idle_future) => Ok(()),
|
||||||
_ = tokio::spawn(active_window_future) => Ok(()),
|
_ = tokio::spawn(active_window_future) => Ok(()),
|
||||||
_ = sigterm => Ok(()),
|
() = sigterm => Ok(()),
|
||||||
_ = sigint => Ok(()),
|
() = sigint => Ok(()),
|
||||||
_ = shutdown_recv.recv() => Ok(()),
|
_ = shutdown_recv.recv() => Ok(()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user