chore: remove redundant field names in struct literals (#1334)

This commit is contained in:
Taiki Endo
2019-07-20 10:43:19 -07:00
committed by Carl Lerche
parent 1b2d997863
commit 9af07ce208
26 changed files with 33 additions and 43 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ where
pub fn framed_read2<T>(inner: T) -> FramedRead2<T> {
FramedRead2 {
inner: inner,
inner,
eof: false,
is_readable: false,
buffer: BytesMut::with_capacity(INITIAL_CAPACITY),
@@ -151,7 +151,7 @@ pub fn framed_read2_with_buffer<T>(inner: T, mut buf: BytesMut) -> FramedRead2<T
buf.reserve(bytes_to_reserve);
}
FramedRead2 {
inner: inner,
inner,
eof: false,
is_readable: buf.len() > 0,
buffer: buf,