Skip to content

Commit 039f877

Browse files
committed
fix: resolve clippy warnings for CI
1 parent b5f1a54 commit 039f877

4 files changed

Lines changed: 4 additions & 19 deletions

File tree

core/src/agent_api.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct ToolCallResult {
5050
// ============================================================================
5151

5252
/// Optional per-session overrides.
53-
#[derive(Clone)]
53+
#[derive(Clone, Default)]
5454
pub struct SessionOptions {
5555
/// Override the default model. Format: `"provider/model"` (e.g., `"openai/gpt-4o"`).
5656
pub model: Option<String>,
@@ -208,23 +208,6 @@ impl SessionOptions {
208208
}
209209
}
210210

211-
impl Default for SessionOptions {
212-
fn default() -> Self {
213-
Self {
214-
model: None,
215-
agent_dirs: Vec::new(),
216-
queue_config: None,
217-
security_provider: None,
218-
context_providers: Vec::new(),
219-
confirmation_manager: None,
220-
permission_checker: None,
221-
planning_enabled: false,
222-
goal_tracking: false,
223-
skill_registry: None,
224-
}
225-
}
226-
}
227-
228211
// ============================================================================
229212
// Agent
230213
// ============================================================================

core/src/memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ pub trait MemoryStore: Send + Sync {
247247
// ============================================================================
248248

249249
/// Sort memory items by relevance score (highest first)
250+
#[allow(dead_code)]
250251
fn sort_by_relevance(items: &mut [MemoryItem]) {
251252
let now = Utc::now();
252253
items.sort_by(|a, b| {

core/src/prompts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub const CONTEXT_SUMMARY_PREFIX: &str =
4848
// ============================================================================
4949

5050
/// User template for session title generation. Placeholder: `{conversation}`
51+
#[allow(dead_code)]
5152
pub const TITLE_GENERATE: &str = include_str!("../prompts/title_generate.md");
5253

5354
// ============================================================================

core/src/tools/builtin/web_search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Tool for WebSearchTool {
153153
if let Some(url) = proxy_url {
154154
// Parse proxy URL into ProxyConfig
155155
if let Some(config) = parse_proxy_url(url) {
156-
let pool = ProxyPool::with_proxies(vec![config]);
156+
let _pool = ProxyPool::with_proxies(vec![config]);
157157
// TODO: a3s-search API changed, need to update
158158
// search.set_proxy_pool(pool);
159159
tracing::warn!("Proxy configuration is temporarily disabled due to API changes");

0 commit comments

Comments
 (0)