clippy fixes

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-11-04 14:53:10 -08:00
parent 058df9d6f0
commit 9b7ee8d8c5
3 changed files with 2 additions and 7 deletions

View File

@@ -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;

View File

@@ -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();
}
});

View File

@@ -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 {