use Self instead of explicit type
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 13 May 2017 08:55:46 +0000 (10:55 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 13 May 2017 08:55:46 +0000 (10:55 +0200)
src/io/byteio.rs

index 6232223a41878e3f4666c24516472249edcfab1a..acd67d4d36c2d14616680e7be2a92369991a52e4 100644 (file)
@@ -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)