X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fio%2Fbyteio.rs;h=acd67d4d36c2d14616680e7be2a92369991a52e4;hb=20ef4353905883ca289782858ccfcd7d2146fa42;hp=6232223a41878e3f4666c24516472249edcfab1a;hpb=794364cf6dc794ccc73f97056ee52199b88769a5;p=nihav.git diff --git a/src/io/byteio.rs b/src/io/byteio.rs index 6232223..acd67d4 100644 --- a/src/io/byteio.rs +++ b/src/io/byteio.rs @@ -64,7 +64,7 @@ macro_rules! peek_int { } impl<'a> ByteReader<'a> { - pub fn new(io: &'a mut ByteIO) -> ByteReader { ByteReader { io: io } } + pub fn new(io: &'a mut ByteIO) -> Self { ByteReader { io: io } } pub fn read_buf(&mut self, buf: &mut [u8]) -> ByteIOResult { self.io.read_buf(buf)