2021-12-14 12:40:53 +00:00
|
|
|
use std::fmt::Display;
|
|
|
|
|
|
|
|
#[cfg(debug_assertions)]
|
|
|
|
pub fn log<T>(msg: T) -> ()
|
|
|
|
where
|
|
|
|
T: Display,
|
|
|
|
{
|
|
|
|
println!("{}", msg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(not(debug_assertions))]
|
|
|
|
pub fn log<T>(msg: T) -> ()
|
|
|
|
where
|
|
|
|
T: Display,
|
|
|
|
{
|
2021-12-14 12:41:38 +00:00
|
|
|
// intentionally left blank, no logging in non-debug mode
|
2021-12-14 12:40:53 +00:00
|
|
|
}
|