From 5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 13 May 2017 10:55:46 +0200 Subject: [PATCH] use Self instead of explicit type --- src/io/byteio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2