[code] remove inline. benchmarks show no difference
This commit is contained in:
parent
7bf1352738
commit
4fd4acec0e
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user