Skip to content

Commit c8a0892

Browse files
authored
Merge pull request #9962 from xtqqczze/clippy/uninlined_format_args
clippy: fix uninlined_format_args lint
2 parents 3a70479 + f2b37cb commit c8a0892

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/uucore/src/lib/features/uptime.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,7 @@ mod tests {
501501
// (This is just a sanity check)
502502
assert!(
503503
uptime < 365 * 86400,
504-
"Uptime seems unreasonably high: {} seconds",
505-
uptime
504+
"Uptime seems unreasonably high: {uptime} seconds"
506505
);
507506
}
508507

@@ -518,9 +517,7 @@ mod tests {
518517
let diff = (uptime1 - uptime2).abs();
519518
assert!(
520519
diff <= 1,
521-
"Consecutive uptime calls should be consistent, got {} and {}",
522-
uptime1,
523-
uptime2
520+
"Consecutive uptime calls should be consistent, got {uptime1} and {uptime2}"
524521
);
525522
}
526523
}

0 commit comments

Comments
 (0)