diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2017-05-13 10:55:46 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2017-05-13 10:55:46 +0200 |
commit | 5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c (patch) | |
tree | 88b5302b05e0a9988dcc590dbd99c2b8ac0bcc38 /src | |
parent | 3b501dcbaabd5922d829b217a541e697e8ed1a59 (diff) | |
download | nihav-5a5a3ecbefb7c7d5274c4a76ade76d650f3e4d0c.tar.gz |
use Self instead of explicit type
Diffstat (limited to 'src')
-rw-r--r-- | src/io/byteio.rs | 2 |
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) |