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
[nihav.git]
/
nihav-core
/
src
/
io
/
bitwriter.rs
diff --git
a/nihav-core/src/io/bitwriter.rs
b/nihav-core/src/io/bitwriter.rs
index 444756744ed143a72d07e8f4f1117aa81a98ed58..4f3c39c25d5e618dbc41c54a3a25f703044507e7 100644
(file)
--- a/
nihav-core/src/io/bitwriter.rs
+++ b/
nihav-core/src/io/bitwriter.rs
@@
-77,6
+77,7
@@
impl BitWriter {
}
/// Writes `bits` bits of `val` value to the output.
#[allow(clippy::collapsible_if)]
+ #[allow(clippy::collapsible_else_if)]
pub fn write(&mut self, val: u32, bits: u8) {
if bits == 0 {
return;