Fix warnings
This commit is contained in:
parent
a49a9bbb90
commit
8672a6f455
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::Result;
|
||||||
use byteorder::{ReadBytesExt, WriteBytesExt, LE};
|
use byteorder::{ReadBytesExt, WriteBytesExt, LE};
|
||||||
use std::{
|
use std::{
|
||||||
fs::{File, OpenOptions},
|
fs::{File, OpenOptions},
|
||||||
|
|
@ -253,7 +253,7 @@ impl FileBitWriter {
|
||||||
pub fn write_bits(&mut self, mut bits: u8, len: u8) -> Result<()> {
|
pub fn write_bits(&mut self, mut bits: u8, len: u8) -> Result<()> {
|
||||||
assert!(len > 0 && len <= 8);
|
assert!(len > 0 && len <= 8);
|
||||||
|
|
||||||
for i in 0..len {
|
for _ in 0..len {
|
||||||
self.write_bit(bits & 1)?;
|
self.write_bit(bits & 1)?;
|
||||||
bits >>= 1;
|
bits >>= 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue