Skip to content

Commit f92fee0

Browse files
committed
cargo clippy
1 parent f3eb996 commit f92fee0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

image/src/iterm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

image/src/kitty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

image/src/sixel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)