From 4fd4acec0e9f16c18929a7bd590113c67e1a179f Mon Sep 17 00:00:00 2001 From: ddidderr Date: Thu, 28 Nov 2024 15:31:44 +0100 Subject: [PATCH] [code] remove inline. benchmarks show no difference --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4fabb6c..a86a52d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,6 @@ const TIME_FORMAT: &str = "%H:%M:%S%.3f"; type LogtimesResult = Result<(), IoError>; -#[inline(always)] fn print_time(output: &mut T) -> LogtimesResult where T: Write, @@ -20,7 +19,6 @@ where write!(output, "[{}] ", &date_now) } -#[inline(always)] fn print_time_color(output: &mut T) -> Result<(), std::io::Error> where T: Write, @@ -33,7 +31,6 @@ where write!(output, "{}[{}]{} ", color_green, &date_now, color_off) } -#[inline(always)] fn print_delete_line(output: &mut T) -> LogtimesResult where T: Write,