enable clippy pedantic for nova-stats, fix all warnings

This commit is contained in:
Damocles 2026-04-17 23:28:24 +02:00
parent 64d0172bee
commit e30cae5c7f
5 changed files with 15 additions and 17 deletions

View file

@ -55,8 +55,8 @@ fn main() {
tick += 1;
let elapsed = t0.elapsed();
if elapsed < interval {
thread::sleep(interval - elapsed);
if let Some(remaining) = interval.checked_sub(elapsed) {
thread::sleep(remaining);
}
}
}