Hello, I want to do something simple. I want to create a macro like this one:
#[macro_export]
macro_rules! print_info {
($($arg:tt)*) => {
use colored::Colorize;
println!(
"{} {}",
"Info:".yellow().bold(),
$($arg)*);
};
}
However I get the following error:
the name `Colorize` is defined multiple times `Colorize` must be defined only once in the type namespace of this block
Is there any simple way to import Colorize just one time even if I use the macro multiple times?