projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix some clippy warnings
[nihav.git]
/
nihav-duck
/
src
/
codecs
/
vp7enc
/
blocks.rs
diff --git
a/nihav-duck/src/codecs/vp7enc/blocks.rs
b/nihav-duck/src/codecs/vp7enc/blocks.rs
index bfb8fbd51352a1c894c68c027dbb92c678d72bb5..227638264cdd8676389664abae7f907a4ea5dd28 100644
(file)
--- a/
nihav-duck/src/codecs/vp7enc/blocks.rs
+++ b/
nihav-duck/src/codecs/vp7enc/blocks.rs
@@
-20,11
+20,7
@@
pub enum MBType {
impl MBType {
pub fn is_intra(&self) -> bool {
impl MBType {
pub fn is_intra(&self) -> bool {
- match *self {
- MBType::Intra(_, _) |
- MBType::Intra4x4(_, _, _) => true,
- _ => false,
- }
+ matches!(*self, MBType::Intra(_, _) | MBType::Intra4x4(_, _, _))
}
pub fn get_last(&self) -> bool {
match *self {
}
pub fn get_last(&self) -> bool {
match *self {