From 3e68048856d15c880f74924ce748571be4176ec2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 13 Aug 2025 17:36:52 +0300 Subject: [PATCH] update fmt --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index b29f667..ccf88f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -209,11 +209,11 @@ async fn main() -> Result<()> { log::debug!( "skip awaiting the completion of preload `{h}` data (`{e}`), ban until {t}." ); - assert!(ban.insert(i, t).is_none()); + assert!(ban.insert(i, t).is_none()) } else { log::debug!( "skip awaiting the completion of preload `{h}` data (`{e}`)" - ); + ) } continue; } @@ -234,7 +234,7 @@ async fn main() -> Result<()> { Err(e) => { let t = Local::now() + Duration::from_secs(config.add_torrent_ban); log::debug!("failed to resolve torrent `{h}`: `{e}`, ban until {t}."); - assert!(ban.insert(i, t).is_none()); + assert!(ban.insert(i, t).is_none()) } }, Err(e) => { @@ -242,7 +242,7 @@ async fn main() -> Result<()> { log::debug!( "skip awaiting the completion of adding torrent `{h}` data (`{e}`), ban until {t}." ); - assert!(ban.insert(i, t).is_none()); + assert!(ban.insert(i, t).is_none()) } } }