diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-01-06 01:42:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-06 01:42:55 +0000 |
commit | 2920cbe7103f03a45080bfb7610bd7f481f36361 (patch) | |
tree | 4839deca8a54d8e2546d124eb26178fd1eac4d4a /src/meter.rs | |
parent | 650b5a0cbaccc6de2b53240372c2be79739d5d12 (diff) | |
download | alacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.tar.gz alacritty-2920cbe7103f03a45080bfb7610bd7f481f36361.zip |
Add clippy check to travis
This commit adds clippy as a required step of the build process. To make
this possible, all existing clippy issues have been resolved.
Diffstat (limited to 'src/meter.rs')
-rw-r--r-- | src/meter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meter.rs b/src/meter.rs index 0b091ab1..51e68c34 100644 --- a/src/meter.rs +++ b/src/meter.rs @@ -103,7 +103,7 @@ impl Meter { fn add_sample(&mut self, sample: Duration) { let mut usec = 0f64; - usec += (sample.subsec_nanos() as f64) / 1e3; + usec += f64::from(sample.subsec_nanos()) / 1e3; usec += (sample.as_secs() as f64) * 1e6; let prev = self.times[self.index]; |