aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2017-05-13 10:55:46 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2017-05-13 10:55:46 +0200
commit5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c (patch)
tree88b5302b05e0a9988dcc590dbd99c2b8ac0bcc38
parent3b501dcbaabd5922d829b217a541e697e8ed1a59 (diff)
downloadnihav-5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c.tar.gz
use Self instead of explicit type
-rw-r--r--src/io/byteio.rs2
1 files changed, 1 insertions, 1 deletions
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<usize> {
self.io.read_buf(buf)