Skip to content

Commit aa74a75

Browse files
committed
Fix a descriptive let binding of an unused return value.
1 parent 7be8647 commit aa74a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isobmff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ pub fn is_heif(buf: &[u8]) -> bool {
328328
let mut boxp = BoxSplitter::new(buf);
329329
while let Ok((boxtype, mut body)) = boxp.child_box() {
330330
if boxtype == b"ftyp" {
331-
let _major_brand_minor_version = if body.slice(8).is_err() {
331+
let Ok(_major_brand_minor_version) = body.slice(8) else {
332332
return false;
333333
};
334334
while let Ok(compat_brand) = body.array4() {

0 commit comments

Comments
 (0)