cargo clippy --fix

This commit is contained in:
Chris Beck
2025-12-08 19:07:12 -07:00
parent f49916811b
commit 4cf90fe61e
2 changed files with 3 additions and 8 deletions
+2 -3
View File
@@ -191,11 +191,10 @@ impl ClaudeWorker {
let executor = self.tool_executor.upgrade();
let tools = executor.as_ref().map(|te| te.tools()).unwrap_or_default();
if let Some(last) = self.messages.last() {
if let Some(ContentBlock::Text { text, .. }) = last.content.first() {
if let Some(last) = self.messages.last()
&& let Some(ContentBlock::Text { text, .. }) = last.content.first() {
info!("Claude request: {}", text);
}
}
for iteration in 0..max_iterations {
// Check for stop before making API call
+1 -5
View File
@@ -19,15 +19,11 @@ pub enum Handling {
///
/// The router contains an ordered list of (prefix, handling) pairs. When routing,
/// it finds the first prefix that matches the start of the message.
#[derive(Default)]
pub struct CommandRouter {
routes: Vec<(String, Handling)>,
}
impl Default for CommandRouter {
fn default() -> Self {
Self { routes: Vec::new() }
}
}
impl CommandRouter {
/// Create a builder for constructing a CommandRouter.