summaryrefslogtreecommitdiff
path: root/src/meter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/meter.rs')
-rw-r--r--src/meter.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/meter.rs b/src/meter.rs
index 32650e4d..81da4442 100644
--- a/src/meter.rs
+++ b/src/meter.rs
@@ -31,7 +31,7 @@
//! // the average won't mean much until it's filled up at least once.
//! println!("Average time: {}", meter.average());
-use std::time::{Instant, Duration};
+use std::time::{Duration, Instant};
const NUM_SAMPLES: usize = 10;
@@ -61,10 +61,7 @@ pub struct Sampler<'a> {
impl<'a> Sampler<'a> {
fn new(meter: &'a mut Meter) -> Sampler<'a> {
- Sampler {
- meter,
- created_at: Instant::now(),
- }
+ Sampler { meter, created_at: Instant::now() }
}
#[inline]