Fix nightly clippy warning

This commit is contained in:
Jon Gjengset 2018-11-24 12:45:07 -05:00
parent cb9df750fd
commit a610283861
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71

View file

@ -131,9 +131,7 @@ pub fn parse_fetches(
use imap_proto::AttributeValue; use imap_proto::AttributeValue;
match attr { match attr {
AttributeValue::Flags(flags) => { AttributeValue::Flags(flags) => {
fetch fetch.flags.extend(flags.iter().cloned().map(Flag::from));
.flags
.extend(flags.into_iter().cloned().map(Flag::from));
} }
AttributeValue::Uid(uid) => fetch.uid = Some(*uid), AttributeValue::Uid(uid) => fetch.uid = Some(*uid),
AttributeValue::Rfc822Size(sz) => fetch.size = Some(*sz), AttributeValue::Rfc822Size(sz) => fetch.size = Some(*sz),