cargo clippy --fix
This commit is contained in:
@@ -191,11 +191,10 @@ impl ClaudeWorker {
|
|||||||
let executor = self.tool_executor.upgrade();
|
let executor = self.tool_executor.upgrade();
|
||||||
let tools = executor.as_ref().map(|te| te.tools()).unwrap_or_default();
|
let tools = executor.as_ref().map(|te| te.tools()).unwrap_or_default();
|
||||||
|
|
||||||
if let Some(last) = self.messages.last() {
|
if let Some(last) = self.messages.last()
|
||||||
if let Some(ContentBlock::Text { text, .. }) = last.content.first() {
|
&& let Some(ContentBlock::Text { text, .. }) = last.content.first() {
|
||||||
info!("Claude request: {}", text);
|
info!("Claude request: {}", text);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for iteration in 0..max_iterations {
|
for iteration in 0..max_iterations {
|
||||||
// Check for stop before making API call
|
// Check for stop before making API call
|
||||||
|
|||||||
@@ -19,15 +19,11 @@ pub enum Handling {
|
|||||||
///
|
///
|
||||||
/// The router contains an ordered list of (prefix, handling) pairs. When routing,
|
/// The router contains an ordered list of (prefix, handling) pairs. When routing,
|
||||||
/// it finds the first prefix that matches the start of the message.
|
/// it finds the first prefix that matches the start of the message.
|
||||||
|
#[derive(Default)]
|
||||||
pub struct CommandRouter {
|
pub struct CommandRouter {
|
||||||
routes: Vec<(String, Handling)>,
|
routes: Vec<(String, Handling)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for CommandRouter {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self { routes: Vec::new() }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl CommandRouter {
|
impl CommandRouter {
|
||||||
/// Create a builder for constructing a CommandRouter.
|
/// Create a builder for constructing a CommandRouter.
|
||||||
|
|||||||
Reference in New Issue
Block a user