We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eea517 commit f2b37cbCopy full SHA for f2b37cb
src/uucore/src/lib/features/uptime.rs
@@ -501,8 +501,7 @@ mod tests {
501
// (This is just a sanity check)
502
assert!(
503
uptime < 365 * 86400,
504
- "Uptime seems unreasonably high: {} seconds",
505
- uptime
+ "Uptime seems unreasonably high: {uptime} seconds"
506
);
507
}
508
@@ -518,9 +517,7 @@ mod tests {
518
517
let diff = (uptime1 - uptime2).abs();
519
520
diff <= 1,
521
- "Consecutive uptime calls should be consistent, got {} and {}",
522
- uptime1,
523
- uptime2
+ "Consecutive uptime calls should be consistent, got {uptime1} and {uptime2}"
524
525
526
0 commit comments