Skip to content

Commit f1ebcf0

Browse files
shenxianpengclaude
andcommitted
test: avoid single_range_in_vec_init lint
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0147vwftyyfJVQYmKSqPEEom
1 parent fa7bb6b commit f1ebcf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp-linter/src/clang_tools/clang_format.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ mod tests {
548548
let (tidy_diff, _input) = make_patch(TIDY_SRC, OG_SRC);
549549
#[cfg(feature = "bin")]
550550
print_diff(OG_SRC, TIDY_SRC, &tidy_diff, &_input);
551-
let ranges = vec![5..=6];
551+
let ranges = vec![RangeInclusive::new(5, 6)];
552552
println!("tidy diff: {tidy_diff:#?}\ncompared to og ranges: {ranges:?}");
553553
let joint_ranges = three_way_diff(&ranges, tidy_diff);
554554
println!("joint ranges: {joint_ranges:#?}");

0 commit comments

Comments
 (0)