Skip to content

Commit 75fcd8d

Browse files
zackeesclaude
andcommitted
style: collapse partition_treats_unknown_extensions_as_objects inputs
rustfmt wants the two-element vec! on one line. Matches the style of the other partition tests in the same module (single-line vec! when the elements fit). Addresses CodeRabbit review feedback on #306. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5ed4f77 commit 75fcd8d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/fbuild-build/src/avr/avr_linker.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ mod tests {
264264
// Defensive: anything that isn't .a (e.g. .lo, .obj, no extension)
265265
// is treated as an object and archived. This is safer than letting
266266
// an unknown extension fall through to a raw avr-gcc positional arg.
267-
let inputs = vec![
268-
PathBuf::from("/tmp/weird.lo"),
269-
PathBuf::from("/tmp/no_ext"),
270-
];
267+
let inputs = vec![PathBuf::from("/tmp/weird.lo"), PathBuf::from("/tmp/no_ext")];
271268
let (archives, objects) = partition_link_inputs(&inputs);
272269
assert!(archives.is_empty());
273270
assert_eq!(objects.len(), 2);

0 commit comments

Comments
 (0)