aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/codecs/h263/data.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-05-15 14:36:43 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-05-15 14:36:43 +0200
commitfdb4b2fbe87ca6e15f6d5e8ad040b7c9ee883053 (patch)
tree1e21d8a62c6f24b78c3b0dd13495a9ee25724136 /nihav-core/src/codecs/h263/data.rs
parente07387c7f125550a41faf36a509b252cf71d7f9a (diff)
downloadnihav-fdb4b2fbe87ca6e15f6d5e8ad040b7c9ee883053.tar.gz
core: fix some clippy warnings
Diffstat (limited to 'nihav-core/src/codecs/h263/data.rs')
-rw-r--r--nihav-core/src/codecs/h263/data.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/nihav-core/src/codecs/h263/data.rs b/nihav-core/src/codecs/h263/data.rs
index 36b22e1..4f6a705 100644
--- a/nihav-core/src/codecs/h263/data.rs
+++ b/nihav-core/src/codecs/h263/data.rs
@@ -127,10 +127,10 @@ impl CodebookDescReader<u8> for H263ShortCodeReader {
#[derive(Clone,Copy)]
pub struct H263RLSym { run: u8, level: i8 }
impl H263RLSym {
- pub fn get_run(&self) -> u8 { self.run }
- pub fn is_last(&self) -> bool { self.level < 0 }
- pub fn is_escape(&self) -> bool { (self.run == 0) && (self.level == 0) }
- pub fn get_level(&self) -> i16 { if self.level < 0 { -self.level as i16 } else { self.level as i16 } }
+ pub fn get_run(self) -> u8 { self.run }
+ pub fn is_last(self) -> bool { self.level < 0 }
+ pub fn is_escape(self) -> bool { (self.run == 0) && (self.level == 0) }
+ pub fn get_level(self) -> i16 { if self.level < 0 { -self.level as i16 } else { self.level as i16 } }
}
pub struct H263RLCodeDesc { code: u8, bits: u8, sym: H263RLSym }