Fix clippy errors

This commit is contained in:
Clémentine Urquizar 2021-06-17 17:03:43 +02:00
parent 33e55bd82e
commit e4b3d35ed8
No known key found for this signature in database
GPG key ID: D8E7CC7422E77E1A
2 changed files with 2 additions and 2 deletions

View file

@ -461,8 +461,7 @@ impl<'a, A: AsRef<[u8]>> Formatter<'a, A> {
let mut total_len: usize = buffer.iter().map(|(word, _)| word.len()).sum();
let before_iter = buffer.into_iter().skip_while(move |(word, _)| {
total_len -= word.len();
let take = total_len >= crop_len;
take
total_len >= crop_len
});
let mut taken_after = 0;