Skip to content

Commit 55987ac

Browse files
max-sixtyclaude
andauthored
Fix clippy uninlined_format_args lint warnings (#801)
## Summary - Fixed clippy lint warnings about uninlined format arguments in test code - Updated format strings to use inline variable syntax (`{variable}`) instead of positional arguments ## Test plan - [x] Run `make lint` - passes without warnings - [x] Run tests to ensure functionality is unchanged 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent ae26e81 commit 55987ac

File tree

1 file changed

+4
-7
lines changed
  • cargo-insta/tests/functional

1 file changed

+4
-7
lines changed

cargo-insta/tests/functional/main.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -834,28 +834,25 @@ fn test_snapshot() {
834834
// Check both stdout and stderr for the diff output
835835
let stdout = String::from_utf8_lossy(&output.stdout);
836836
let stderr = String::from_utf8_lossy(&output.stderr);
837-
let combined_output = format!("{}\n{}", stdout, stderr);
837+
let combined_output = format!("{stdout}\n{stderr}");
838838

839839
// Check that line numbers in the diff start at 1, not 0
840840
// The diff should show line numbers like "1 1 │" for the first line
841841
assert!(
842842
combined_output.contains(" 1 1 │ line1"),
843-
"Expected line numbers to start at 1, but got:\n{}",
844-
combined_output
843+
"Expected line numbers to start at 1, but got:\n{combined_output}"
845844
);
846845

847846
// Also check line 2 which has the modification
848847
assert!(
849848
combined_output.contains(" 2 │-modified_line2")
850849
|| combined_output.contains(" 2 │+line2"),
851-
"Expected line 2 to be numbered as 2, but got:\n{}",
852-
combined_output
850+
"Expected line 2 to be numbered as 2, but got:\n{combined_output}"
853851
);
854852

855853
// And verify line 5 is numbered as 5
856854
assert!(
857855
combined_output.contains(" 5 5 │ line5"),
858-
"Expected line 5 to be numbered as 5, but got:\n{}",
859-
combined_output
856+
"Expected line 5 to be numbered as 5, but got:\n{combined_output}"
860857
);
861858
}

0 commit comments

Comments
 (0)