From ed90c33f4a86cc236d1143fe327cbb08ddfc60e6 Mon Sep 17 00:00:00 2001 From: RafalGoslawski Date: Thu, 15 Dec 2022 17:20:46 +0000 Subject: [PATCH] Tagalong: Fixed warnings in examples --- examples/basics.rs | 2 +- examples/raw_log.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()