Fix clippy warnings

This commit is contained in:
Lucien Greathouse
2019-10-17 18:22:53 -07:00
parent ec614e1912
commit 44c94da2d8
17 changed files with 42 additions and 33 deletions

View File

@@ -336,7 +336,7 @@ impl<F: VfsFetcher> UiService<F> {
// Round off all of our sub-second precision to make timestamps
// nicer.
let just_nanos = Duration::from_nanos(elapsed.subsec_nanos() as u64);
let just_nanos = Duration::from_nanos(u64::from(elapsed.subsec_nanos()));
let elapsed = elapsed - just_nanos;
humantime::format_duration(elapsed).to_string()