diff --git a/README.md b/README.md index 4dfa354..fcfc72f 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,7 @@ let now = Instant::now(); log::info!("thread {i} bandwidth: {bandwidth}"); }); let total_bandwidth = Byte::from_bytes((DATA_SIZE / now.elapsed().as_secs()) as u128) - .get_appropriate_unit(true) - .to_string(); + .get_appropriate_unit(true); log::info!("Total bandwidth: {total_bandwidth}/s"); ``` diff --git a/examples/dd_test.rs b/examples/dd_test.rs index 6a495fb..11a3afb 100644 --- a/examples/dd_test.rs +++ b/examples/dd_test.rs @@ -57,8 +57,7 @@ fn main() -> MainResult { log::info!("thread {i} bandwidth: {bandwidth}"); }); let total_bandwidth = Byte::from_bytes((DATA_SIZE / now.elapsed().as_secs()) as u128) - .get_appropriate_unit(true) - .to_string(); + .get_appropriate_unit(true); log::info!("Total bandwidth: {total_bandwidth}/s"); Ok(()) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 987e224..11debd3 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -193,7 +193,7 @@ pub fn spawn_with_output(input: proc_macro::TokenStream) -> proc_macro::TokenStr #[proc_macro] #[proc_macro_error] -/// Logs a fatal message at the error level, and exit process +/// Log a fatal message at the error level, and exit process /// /// e.g: /// ``` diff --git a/src/lib.rs b/src/lib.rs index ff6e043..91e48f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,8 +61,7 @@ //! log::info!("thread {i} bandwidth: {bandwidth}"); //! }); //! let total_bandwidth = Byte::from_bytes((DATA_SIZE / now.elapsed().as_secs()) as u128) -//! .get_appropriate_unit(true) -//! .to_string(); +//! .get_appropriate_unit(true); //! log::info!("Total bandwidth: {total_bandwidth}/s"); //! # Ok::<(), std::io::Error>(()) //! ```