Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Dec 23, 2024
1 parent 5ecf272 commit bf140f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/src/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl SixelBackend {
read(STDIN_FILENO, &mut byte as *mut _ as *mut c_void, 1);
}
buf.push(byte);
if buf.starts_with(&[0x1B, b'[', b'?']) && buf.ends_with(&[b'c']) {
if buf.starts_with(&[0x1B, b'[', b'?']) && buf.ends_with(b"c") {
for attribute in buf[3..(buf.len() - 1)].split(|x| *x == b';') {
if attribute == [b'4'] {
unsafe {
Expand Down

0 comments on commit bf140f4

Please sign in to comment.