Skip to content

Commit 68e2171

Browse files
konardclaude
andcommitted
Fix clippy derivable_impls warning
Replace manual Default impl for QwenErrorResult with #[derive(Default)] as suggested by clippy. This is equivalent since all fields have default values (bool defaults to false, Option defaults to None). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 295aeb8 commit 68e2171

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

rust/src/tools/qwen.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,23 +268,13 @@ pub fn extract_usage(output: &str) -> QwenUsage {
268268
}
269269

270270
/// Error detection result
271-
#[derive(Debug, Clone)]
271+
#[derive(Debug, Clone, Default)]
272272
pub struct QwenErrorResult {
273273
pub has_error: bool,
274274
pub error_type: Option<String>,
275275
pub message: Option<String>,
276276
}
277277

278-
impl Default for QwenErrorResult {
279-
fn default() -> Self {
280-
Self {
281-
has_error: false,
282-
error_type: None,
283-
message: None,
284-
}
285-
}
286-
}
287-
288278
/// Detect errors in Qwen Code output
289279
///
290280
/// # Arguments

0 commit comments

Comments
 (0)