1414use crate :: prelude:: * ;
1515
1616use indenter:: indented;
17- use owo_colors:: OwoColorize ;
17+ use owo_colors:: { AnsiColors , OwoColorize } ;
1818use std:: fmt:: Debug ;
1919use std:: fmt:: { Display , Write } ;
2020use std:: hash:: Hash ;
@@ -267,7 +267,6 @@ pub struct ResourceSetupInfo<K, S, C: ResourceSetupStatusCheck> {
267267
268268impl < K , S , C : ResourceSetupStatusCheck > std:: fmt:: Display for ResourceSetupInfo < K , S , C > {
269269 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
270- let cyan = ( 0x5c , 0xe1 , 0xe6 ) ;
271270 let status_code = match self . status_check . as_ref ( ) . map ( |c| c. change_type ( ) ) {
272271 Some ( SetupChangeType :: NoChange ) => "READY" ,
273272 Some ( SetupChangeType :: Create ) => "TO CREATE" ,
@@ -277,16 +276,16 @@ impl<K, S, C: ResourceSetupStatusCheck> std::fmt::Display for ResourceSetupInfo<
277276 None => "USER MANAGED" ,
278277 } ;
279278 let status_str = format ! ( "[ {:^9} ]" , status_code) ;
280- let status_full = status_str. truecolor ( cyan . 0 , cyan . 1 , cyan . 2 ) ;
281- let desc_colored = self . description . truecolor ( 0xff , 0xff , 0xff ) ;
279+ let status_full = status_str. color ( AnsiColors :: Cyan ) ;
280+ let desc_colored = self . description . color ( AnsiColors :: BrightWhite ) ;
282281 writeln ! ( f, "{} {}" , status_full, desc_colored) ?;
283282 if let Some ( status_check) = & self . status_check {
284283 let changes = status_check. describe_changes ( ) ;
285284 if !changes. is_empty ( ) {
286285 let mut f = indented ( f) . with_str ( INDENT ) ;
287- writeln ! ( f, "{}" , "TODO :" . truecolor ( 0xae , 0xae , 0xae ) ) ?;
286+ writeln ! ( f, "{}" , "CHANGE :" . color ( AnsiColors :: BrightBlack ) ) ?;
288287 for change in changes {
289- writeln ! ( f, " - {}" , change. truecolor ( 0xae , 0xae , 0xae ) ) ?;
288+ writeln ! ( f, " - {}" , change. color ( AnsiColors :: BrightBlack ) ) ?;
290289 }
291290 writeln ! ( f) ?;
292291 }
0 commit comments