Skip to content

Commit f670415

Browse files
committed
Nits
1 parent b14d215 commit f670415

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use cc;
2-
31
use rustc_version::{version_meta, Channel};
42

53
fn main() {

src/timestamp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::ops::*;
66
pub struct Timestamp(pub(crate) u64);
77

88
/// The difference between two timestamps.
9-
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
9+
#[derive(Clone, Copy, Default, Eq, PartialEq, Ord, PartialOrd)]
1010
pub struct Elapsed(u64);
1111

1212
impl Sub for Timestamp {
@@ -42,7 +42,7 @@ impl Elapsed {
4242
/// Returns a nul duration
4343
#[inline]
4444
pub fn new() -> Self {
45-
Elapsed(0)
45+
Elapsed::default()
4646
}
4747

4848
/// Builds a `Duration` from a number of ticks

0 commit comments

Comments
 (0)