commit 9b7ee8d8c5c5b1df0fdaec487baada237483ec80
parent 058df9d6f06152e026bc49ec52379f29b38f29d9
Author: William Casarin <jb55@jb55.com>
Date: Tue, 4 Nov 2025 14:53:10 -0800
clippy fixes
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
3 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/crates/enostr/src/relay/pool.rs b/crates/enostr/src/relay/pool.rs
@@ -8,7 +8,7 @@ use std::time::{Duration, Instant};
use url::Url;
use ewebsock::{WsEvent, WsMessage};
-use tracing::{debug, trace, error};
+use tracing::{debug, error, trace};
use super::subs_debug::SubsDebug;
diff --git a/crates/notedeck_clndash/src/summary.rs b/crates/notedeck_clndash/src/summary.rs
@@ -102,7 +102,7 @@ pub fn summary_cards_ui(ui: &mut egui::Ui, s: &Summary, prev: Option<&Summary>)
}
// If the last row wasn't full, close it anyway
- if items_len % cols != 0 {
+ if !items_len.is_multiple_of(cols) {
ui.end_row();
}
});
diff --git a/crates/notedeck_dave/src/tools.rs b/crates/notedeck_dave/src/tools.rs
@@ -145,11 +145,6 @@ pub enum ToolCalls {
Invalid(InvalidToolCall),
}
-#[derive(Debug, Clone, Serialize, Deserialize)]
-struct ErrorCall {
- error: String,
-}
-
impl ToolCalls {
pub fn to_api(&self) -> FunctionCall {
FunctionCall {