From: Kostya Shishkov Date: Sat, 13 May 2017 08:55:46 +0000 (+0200) Subject: use Self instead of explicit type X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c;p=nihav.git use Self instead of explicit type --- 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)