Release.colorized(), not std::fmt::Display

I don't know for sure if the string-ified version of a Release struct is
being printed to the terminal. As such, I don't know if the user wants,
does not want, or has mixed intentions for the stringification of this
thing.

No Display impl, instead just a `colorized()` method.
This commit is contained in:
2025-07-03 17:46:12 -05:00
parent d4ef21e243
commit f068e8233e
2 changed files with 4 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ async fn main() -> Result<(), gt_tool::Error> {
releases
.iter()
.rev()
.map(|release| release.to_string()),
.map(|release| release.colorized()),
String::from("")
)
.map(|release| println!("{}", release))