projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix clippy warnings for update to rustc 1.46
[nihav.git]
/
nihav-indeo
/
src
/
codecs
/
ivibr.rs
diff --git
a/nihav-indeo/src/codecs/ivibr.rs
b/nihav-indeo/src/codecs/ivibr.rs
index c6609ccaf15c62a97cf76778566ec5b58629e711..141200c447ee5baa9063854529ae89207e2523ba 100644
(file)
--- a/
nihav-indeo/src/codecs/ivibr.rs
+++ b/
nihav-indeo/src/codecs/ivibr.rs
@@
-931,8
+931,8
@@
br.skip(skip_part as u32)?;
let seq = br.peek(21);
if seq == 0xBFFF8 {
let res2 = self.decode_single_frame(dec, br);
- if
res2.is_ok()
{
- self.bref = Some(res
2.unwrap()
);
+ if
let Ok(res) = res2
{
+ self.bref = Some(res);
}
}
self.ftype = IVIFrameType::Intra;