@@ -1903,15 +1903,15 @@ impl Assembler
19031903
19041904/// Return a result of fmt::Display for Assembler without escape sequence
19051905pub fn lir_string ( asm : & Assembler ) -> String {
1906- use crate :: utils :: TTY_TERMINAL_COLOR ;
1906+ use crate :: ttycolors :: TTY_TERMINAL_COLOR ;
19071907 format ! ( "{asm}" ) . replace ( TTY_TERMINAL_COLOR . bold_begin , "" ) . replace ( TTY_TERMINAL_COLOR . bold_end , "" )
19081908}
19091909
19101910impl fmt:: Display for Assembler {
19111911 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
19121912 // Count the number of duplicated label names to disambiguate them if needed
19131913 let mut label_counts: HashMap < & String , usize > = HashMap :: new ( ) ;
1914- let colors = crate :: utils :: get_colors ( ) ;
1914+ let colors = crate :: ttycolors :: get_colors ( ) ;
19151915 let bold_begin = colors. bold_begin ;
19161916 let bold_end = colors. bold_end ;
19171917 for label_name in self . label_names . iter ( ) {
@@ -2507,7 +2507,7 @@ impl AssemblerPanicHook {
25072507
25082508 /// Dump Assembler, highlighting the insn_idx line
25092509 fn dump_asm ( asm : & Assembler , insn_idx : usize ) {
2510- let colors = crate :: utils :: get_colors ( ) ;
2510+ let colors = crate :: ttycolors :: get_colors ( ) ;
25112511 let bold_begin = colors. bold_begin ;
25122512 let bold_end = colors. bold_end ;
25132513 let lir_string = lir_string ( asm) ;
0 commit comments