extern crate colored; // not needed in Rust 2018+
use colored::*;
// test the example with `cargo run --example most_simple`
fn main() {
// TADAA!
println!("{} {} !", "it".green(), "works".blue().bold());
}
there is a wildcard import. Wouldn't it be better to use just colored::Colorize instead?
Running clippy with the following flags:
cargo clippy --workspace --all-targets --all-features -- -D warnings - W clippy::pedantic
gives an error and suggests using colored::Colorize instead. I hope this pr is fine.
In the following code in the readme,
there is a wildcard import. Wouldn't it be better to use just colored::Colorize instead?
Running clippy with the following flags:
cargo clippy --workspace --all-targets --all-features -- -D warnings - W clippy::pedantic
gives an error and suggests using colored::Colorize instead. I hope this pr is fine.