projects
/
nihav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b501dc
)
use Self instead of explicit type
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 13 May 2017 08:55:46 +0000
(10:55 +0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Sat, 13 May 2017 08:55:46 +0000
(10:55 +0200)
src/io/byteio.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/io/byteio.rs
b/src/io/byteio.rs
index 6232223a41878e3f4666c24516472249edcfab1a..acd67d4d36c2d14616680e7be2a92369991a52e4 100644
(file)
--- 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)