@@ -12,13 +12,10 @@ const BOLD_RED: &str = "\x1b[1;31m";
1212const BOLD_GREEN : & str = "\x1b [1;32m" ;
1313const BOLD_YELLOW : & str = "\x1b [1;33m" ;
1414
15-
1615pub async fn print_list ( app_details : & [ AppAttributes ] ) {
1716 for ( i, details) in app_details. iter ( ) . enumerate ( ) {
1817 println ! ( "\n {RESET}{BOLD_MAGENTA} ┏━━━━━━━━━━━━━━━━┓" ) ;
19- println ! (
20- "{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃" ,
21- ) ;
18+ println ! ( "{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃" , ) ;
2219 println ! ( "{RESET}{BOLD_YELLOW} ┗━━━━━━━━━━━━━━━━┛" ) ;
2320 println ! (
2421 "\n {BOLD_GREEN} Name: {RESET}{}" ,
@@ -47,13 +44,10 @@ pub async fn print_list(app_details: &[AppAttributes]) {
4744 }
4845}
4946
50-
5147pub async fn print_info ( app_details : & mut [ AppAttributes ] , system_details : & mut SystemAttributes ) {
5248 for ( i, details) in app_details. iter ( ) . enumerate ( ) {
5349 println ! ( "\n {RESET}{BOLD_MAGENTA} ┏━━━━━━━━━━━━━━━━┓" ) ;
54- println ! (
55- "{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃"
56- ) ;
50+ println ! ( "{RESET}{BOLD_RED} ┃ {RESET}{BOLD_GREEN} App_{i} {RESET}{BOLD_RED}┃" ) ;
5751 println ! ( "{RESET}{BOLD_YELLOW} ┗━━━━━━━━━━━━━━━━┛" ) ;
5852
5953 println ! (
@@ -88,7 +82,7 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
8882 ) ;
8983
9084 println ! (
91- " {BOLD_GREEN} TBF version: {RESET}{}" ,
85+ " {BOLD_GREEN} TBF version: {RESET}{}" ,
9286 details. tbf_header. get_binary_version( ) ,
9387 ) ;
9488
@@ -187,9 +181,7 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
187181 total_footer_size += footer_details. size + 4 ;
188182 }
189183
190- println ! (
191- " {BOLD_GREEN} footer_size: {RESET}{total_footer_size}"
192- ) ;
184+ println ! ( " {BOLD_GREEN} footer_size: {RESET}{total_footer_size}" ) ;
193185
194186 for ( j, footer_details) in details. tbf_footers . iter ( ) . enumerate ( ) {
195187 println ! ( " {BOLD_GREEN} Footer [{j}] TVL: Credentials{RESET}" ) ;
@@ -235,4 +227,4 @@ pub async fn print_info(app_details: &mut [AppAttributes], system_details: &mut
235227 "{BOLD_GREEN} kernel_binary_len: {:<10}{RESET}\n \n " ,
236228 system_details. kernel_bin_len. unwrap( ) ,
237229 ) ;
238- }
230+ }
0 commit comments