1
Fork 0

Don't redundantly repeat field names (clippy::redundant_field_names)

This commit is contained in:
Matthias Krüger 2020-03-06 19:28:44 +01:00
parent 865b44a3e3
commit 83980aca20
61 changed files with 88 additions and 100 deletions

View file

@ -371,7 +371,7 @@ where
F: FnMut(&R) -> usize,
{
let start_len = buf.len();
let mut g = Guard { len: buf.len(), buf: buf };
let mut g = Guard { len: buf.len(), buf };
let ret;
loop {
if g.len == g.buf.len() {
@ -939,7 +939,7 @@ pub trait Read {
where
Self: Sized,
{
Take { inner: self, limit: limit }
Take { inner: self, limit }
}
}