[code] remove inline. benchmarks show no difference

This commit is contained in:
ddidderr 2024-11-28 15:31:44 +01:00
parent 7bf1352738
commit 4fd4acec0e
Signed by: ddidderr
GPG Key ID: 3841F1C27E6F0E14

View File

@ -10,7 +10,6 @@ const TIME_FORMAT: &str = "%H:%M:%S%.3f";
type LogtimesResult = Result<(), IoError>; type LogtimesResult = Result<(), IoError>;
#[inline(always)]
fn print_time<T>(output: &mut T) -> LogtimesResult fn print_time<T>(output: &mut T) -> LogtimesResult
where where
T: Write, T: Write,
@ -20,7 +19,6 @@ where
write!(output, "[{}] ", &date_now) write!(output, "[{}] ", &date_now)
} }
#[inline(always)]
fn print_time_color<T>(output: &mut T) -> Result<(), std::io::Error> fn print_time_color<T>(output: &mut T) -> Result<(), std::io::Error>
where where
T: Write, T: Write,
@ -33,7 +31,6 @@ where
write!(output, "{}[{}]{} ", color_green, &date_now, color_off) write!(output, "{}[{}]{} ", color_green, &date_now, color_off)
} }
#[inline(always)]
fn print_delete_line<T>(output: &mut T) -> LogtimesResult fn print_delete_line<T>(output: &mut T) -> LogtimesResult
where where
T: Write, T: Write,