File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl super::ImageBackend for ITermBackend {
5656 image_data. extend ( format ! ( "\x1B [{}A" , image_rows as u32 - 1 ) . as_bytes ( ) ) ; // move cursor to start of image
5757 let mut i = 0 ;
5858 for line in & lines {
59- image_data. extend ( format ! ( "\x1B [s{}\x1B [u\x1B [1B" , line ) . as_bytes ( ) ) ;
59+ image_data. extend ( format ! ( "\x1B [s{line }\x1B [u\x1B [1B" ) . as_bytes ( ) ) ;
6060 i += 1 ;
6161 }
6262 image_data
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl super::ImageBackend for KittyBackend {
131131 image_data. extend ( format ! ( "\x1B [{}A" , image_rows as u32 - 1 ) . as_bytes ( ) ) ; // move cursor to start of image
132132 let mut i = 0 ;
133133 for line in & lines {
134- image_data. extend ( format ! ( "\x1B [s{}\x1B [u\x1B [1B" , line ) . as_bytes ( ) ) ;
134+ image_data. extend ( format ! ( "\x1B [s{line }\x1B [u\x1B [1B" ) . as_bytes ( ) ) ;
135135 i += 1 ;
136136 }
137137 image_data
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl super::ImageBackend for SixelBackend {
152152 sixel_samples[ x as usize ] |= 1 << y;
153153 }
154154 }
155- image_data. extend ( format ! ( "#{}" , color_index ) . bytes ( ) ) ;
155+ image_data. extend ( format ! ( "#{color_index}" ) . bytes ( ) ) ;
156156 image_data. extend ( sixel_samples. iter ( ) . map ( |x| x + 0x3F ) ) ;
157157 image_data. push ( b'$' ) ;
158158 }
@@ -164,7 +164,7 @@ impl super::ImageBackend for SixelBackend {
164164 image_data. extend ( format ! ( "\x1B [{}C" , image_columns as u32 + 1 ) . as_bytes ( ) ) ; // move cursor to top-right corner of image
165165 let mut i = 0 ;
166166 for line in & lines {
167- image_data. extend ( format ! ( "\x1B [s{}\x1B [u\x1B [1B" , line ) . as_bytes ( ) ) ;
167+ image_data. extend ( format ! ( "\x1B [s{line }\x1B [u\x1B [1B" ) . as_bytes ( ) ) ;
168168 i += 1 ;
169169 }
170170 image_data
You can’t perform that action at this time.
0 commit comments