enable clippy pedantic for nova-stats, fix all warnings
This commit is contained in:
parent
64d0172bee
commit
e30cae5c7f
5 changed files with 15 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue