From a8afe0cbc170895dc2ae956953c749d6acbd2b6e Mon Sep 17 00:00:00 2001 From: harald Date: Wed, 25 Feb 2026 17:12:20 +0100 Subject: [PATCH] cargo fmt --- src/tools/mod.rs | 4 ++-- src/tools/notify.rs | 11 ++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/tools/mod.rs b/src/tools/mod.rs index ad5c659..21881e5 100644 --- a/src/tools/mod.rs +++ b/src/tools/mod.rs @@ -19,8 +19,8 @@ pub mod image_info; pub mod memory_forget; pub mod memory_recall; pub mod memory_store; -pub mod proxy_config; pub mod notify; +pub mod proxy_config; pub mod schedule; pub mod schema; pub mod screenshot; @@ -49,8 +49,8 @@ pub use image_info::ImageInfoTool; pub use memory_forget::MemoryForgetTool; pub use memory_recall::MemoryRecallTool; pub use memory_store::MemoryStoreTool; -pub use proxy_config::ProxyConfigTool; pub use notify::NotifyTool; +pub use proxy_config::ProxyConfigTool; pub use schedule::ScheduleTool; #[allow(unused_imports)] pub use schema::{CleaningStrategy, SchemaCleanr}; diff --git a/src/tools/notify.rs b/src/tools/notify.rs index 799851e..8ff55a9 100644 --- a/src/tools/notify.rs +++ b/src/tools/notify.rs @@ -180,10 +180,7 @@ impl NotifyTool { _ => message.to_owned(), }; - let url = format!( - "https://api.telegram.org/bot{}/sendMessage", - bot_token - ); + let url = format!("https://api.telegram.org/bot{}/sendMessage", bot_token); let client = crate::config::build_runtime_proxy_client_with_timeouts( "tool.notify", @@ -538,11 +535,7 @@ mod tests { fn detect_prefers_pushover_when_both_available() { let tmp = TempDir::new().unwrap(); let env_path = tmp.path().join(".env"); - fs::write( - &env_path, - "PUSHOVER_TOKEN=token\nPUSHOVER_USER_KEY=user\n", - ) - .unwrap(); + fs::write(&env_path, "PUSHOVER_TOKEN=token\nPUSHOVER_USER_KEY=user\n").unwrap(); let tg = TelegramConfig { bot_token: "123:ABC".into(),