Skip to content

Commit 295aeb8

Browse files
konardclaude
andcommitted
Fix Rust formatting (cargo fmt)
Apply automatic formatting via cargo fmt to: - rust/src/tools/qwen.rs: Align comment indentation - rust/tests/agent_tests.rs: Multi-line assert formatting - rust/tests/claude_tests.rs: Multi-line assert formatting - rust/tests/opencode_tests.rs: Multi-line assert formatting Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent ffbecc7 commit 295aeb8

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

rust/src/tools/qwen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ impl Default for QwenTool {
352352
supports_json_output: true,
353353
supports_json_input: true, // Qwen Code supports stream-json input format
354354
supports_system_prompt: false, // System prompt is combined with user prompt
355-
supports_resume: true, // Supports --resume and --continue
355+
supports_resume: true, // Supports --resume and --continue
356356
supports_continue_session: true, // Supports --continue for most recent session
357-
supports_yolo: true, // Supports --yolo for auto-approval
358-
supports_all_files: true, // Supports --all-files
357+
supports_yolo: true, // Supports --yolo for auto-approval
358+
supports_all_files: true, // Supports --all-files
359359
supports_include_directories: true, // Supports --include-directories
360360
supports_include_partial_messages: true, // Supports --include-partial-messages
361361
default_model: "qwen3-coder-480a35",

rust/tests/agent_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ fn test_map_model_to_id_with_alias() {
1515

1616
#[test]
1717
fn test_map_model_to_id_with_full_id() {
18-
assert_eq!(map_model_to_id("custom-provider/model"), "custom-provider/model");
18+
assert_eq!(
19+
map_model_to_id("custom-provider/model"),
20+
"custom-provider/model"
21+
);
1922
}
2023

2124
// Build args tests

rust/tests/claude_tests.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ fn test_map_model_to_id_with_alias() {
1616

1717
#[test]
1818
fn test_map_model_to_id_with_full_id() {
19-
assert_eq!(map_model_to_id("claude-3-opus-20240229"), "claude-3-opus-20240229");
19+
assert_eq!(
20+
map_model_to_id("claude-3-opus-20240229"),
21+
"claude-3-opus-20240229"
22+
);
2023
}
2124

2225
// Build args tests
@@ -62,7 +65,10 @@ fn test_build_args_uses_stream_json_format() {
6265
let args = build_args(&options);
6366
assert!(args.contains(&"--output-format".to_string()));
6467
assert!(args.contains(&"stream-json".to_string()));
65-
assert!(!args.iter().filter(|a| *a != &"stream-json").any(|a| a == "json"));
68+
assert!(!args
69+
.iter()
70+
.filter(|a| *a != &"stream-json")
71+
.any(|a| a == "json"));
6672
}
6773

6874
#[test]

rust/tests/opencode_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ fn test_map_model_to_id_with_alias() {
1515

1616
#[test]
1717
fn test_map_model_to_id_with_full_id() {
18-
assert_eq!(map_model_to_id("custom-provider/model"), "custom-provider/model");
18+
assert_eq!(
19+
map_model_to_id("custom-provider/model"),
20+
"custom-provider/model"
21+
);
1922
}
2023

2124
// Build args tests

0 commit comments

Comments
 (0)