Fix compiler warnings

master
Bradlee Speice 2019-04-23 13:29:31 -04:00
parent 5343ac0396
commit cf92d98671
1 changed files with 9 additions and 8 deletions

View File

@ -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!()
} }