Make clippy happy

This commit is contained in:
2019-04-01 12:51:40 +02:00
parent 8159943199
commit 4d618efe42
8 changed files with 54 additions and 41 deletions

View File

@@ -2,12 +2,13 @@ use Result;
use block::Block;
use ops::{Operation,num_to_op};
#[allow(unknown_lints,len_without_is_empty)]
pub trait BinReadable {
fn get(&mut self) -> Result<u8>;
fn cur(&self) -> usize;
fn len(&self) -> usize;
fn slice(&mut self, len: usize) -> &[u8];
fn is_empty(&self) -> bool;
}
pub trait BinRead {