error[E0425]: cannot find function `green` in this scope
--> src/main.rs:134:30
|
134 | println!("this is green".green());
| ^^^^^ not found in this scope
My code is simply following the directions from the docs. I imported the package via cargo add colored.
use colored::Colorize;
pub fn main() {
println!("this is green".green());
}