diff --git a/image/src/sixel.rs b/image/src/sixel.rs index 1afa7ed2d..d4aeabf55 100644 --- a/image/src/sixel.rs +++ b/image/src/sixel.rs @@ -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 {