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 {
56
56
image_data. extend ( format ! ( "\x1B [{}A" , image_rows as u32 - 1 ) . as_bytes ( ) ) ; // move cursor to start of image
57
57
let mut i = 0 ;
58
58
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 ( ) ) ;
60
60
i += 1 ;
61
61
}
62
62
image_data
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl super::ImageBackend for KittyBackend {
131
131
image_data. extend ( format ! ( "\x1B [{}A" , image_rows as u32 - 1 ) . as_bytes ( ) ) ; // move cursor to start of image
132
132
let mut i = 0 ;
133
133
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 ( ) ) ;
135
135
i += 1 ;
136
136
}
137
137
image_data
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl super::ImageBackend for SixelBackend {
152
152
sixel_samples[ x as usize ] |= 1 << y;
153
153
}
154
154
}
155
- image_data. extend ( format ! ( "#{}" , color_index ) . bytes ( ) ) ;
155
+ image_data. extend ( format ! ( "#{color_index}" ) . bytes ( ) ) ;
156
156
image_data. extend ( sixel_samples. iter ( ) . map ( |x| x + 0x3F ) ) ;
157
157
image_data. push ( b'$' ) ;
158
158
}
@@ -164,7 +164,7 @@ impl super::ImageBackend for SixelBackend {
164
164
image_data. extend ( format ! ( "\x1B [{}C" , image_columns as u32 + 1 ) . as_bytes ( ) ) ; // move cursor to top-right corner of image
165
165
let mut i = 0 ;
166
166
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 ( ) ) ;
168
168
i += 1 ;
169
169
}
170
170
image_data
You can’t perform that action at this time.
0 commit comments