Skip to content

Commit 9e01547

Browse files
committed
misc: Apply clippy suggestions
1 parent 21cb39d commit 9e01547

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/colorize.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ where
8080
} else {
8181
assert!(
8282
([" ", "-", "+", "~"].contains(&op)),
83-
"Unexpected op '{}'",
84-
op
83+
"Unexpected op '{op}'"
8584
);
8685
let subvalue = subvalue.unwrap();
8786
let color = if op == "~" { " " } else { op };

src/diff.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ impl JsonDiff {
230230
for key in seq1.iter().take(opcode.first_end).skip(opcode.first_start) {
231231
let is_scalarized1 = Self::is_scalarized(key, &originals1);
232232
assert!(!is_scalarized1 || (Self::is_scalarized(key, &originals2)),
233-
"Internal bug: the items associated to the key {} are different in the two dictionaries",
234-
key
233+
"Internal bug: the items associated to the key {key} are different in the two dictionaries"
235234
);
236235
if is_scalarized1 {
237236
let item1 = Self::descalarize(key, &scalar_values1, &originals1);

0 commit comments

Comments
 (0)