diff --git a/examples/basics.rs b/examples/basics.rs index 46b9244..2d32753 100644 --- a/examples/basics.rs +++ b/examples/basics.rs @@ -45,6 +45,6 @@ fn main() { // using a "time handle" let start_time = timer.start(); - Duration::from_millis(5); + sleep(Duration::from_millis(5)); timer.stop(start_time); } diff --git a/examples/raw_log.rs b/examples/raw_log.rs index 8d9a046..537c96a 100755 --- a/examples/raw_log.rs +++ b/examples/raw_log.rs @@ -1,7 +1,7 @@ //! Use the metrics backend directly to log a metric value. //! Applications should use the metrics()-provided instruments instead. -use dipstick::{labels, Input, InputScope, Labels}; +use dipstick::{labels, Input, InputScope}; fn main() { raw_write()