mirror of
https://github.com/bspeice/kaitai_rust
synced 2024-11-22 13:58:11 -05:00
Fix compiler warnings
This commit is contained in:
parent
5343ac0396
commit
cf92d98671
17
src/lib.rs
17
src/lib.rs
@ -42,7 +42,7 @@ impl<'a> KStruct<'a> for KStructUnit<'a> {
|
|||||||
Ok(KStructUnit { phantom: PhantomData })
|
Ok(KStructUnit { phantom: PhantomData })
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read<S: KStream>(&mut self, stream: &mut S) -> Result<(), KError<'a>> {
|
fn read<S: KStream>(&mut self, _stream: &mut S) -> Result<(), KError<'a>> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -125,6 +125,7 @@ pub trait KStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
struct BytesReader<'a> {
|
struct BytesReader<'a> {
|
||||||
bytes: &'a [u8],
|
bytes: &'a [u8],
|
||||||
pos: usize,
|
pos: usize,
|
||||||
@ -151,7 +152,7 @@ impl<'a> KStream for BytesReader<'a> {
|
|||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn seek(&mut self, position: u64) -> io::Result<()> {
|
fn seek(&mut self, _position: u64) -> io::Result<()> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,11 +240,11 @@ impl<'a> KStream for BytesReader<'a> {
|
|||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_bits_int(&mut self, n: u32) -> io::Result<u64> {
|
fn read_bits_int(&mut self, _n: u32) -> io::Result<u64> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_bytes(&mut self, len: usize) -> io::Result<&[u8]> {
|
fn read_bytes(&mut self, _len: usize) -> io::Result<&[u8]> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,10 +254,10 @@ impl<'a> KStream for BytesReader<'a> {
|
|||||||
|
|
||||||
fn read_bytes_term(
|
fn read_bytes_term(
|
||||||
&mut self,
|
&mut self,
|
||||||
term: char,
|
_term: char,
|
||||||
include: bool,
|
_include: bool,
|
||||||
consume: bool,
|
_consume: bool,
|
||||||
eos_error: bool,
|
_eos_error: bool,
|
||||||
) -> io::Result<&[u8]> {
|
) -> io::Result<&[u8]> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user