diff --git a/src/parse.rs b/src/parse.rs index 04bcc35..f7aa94d 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -131,9 +131,7 @@ pub fn parse_fetches( use imap_proto::AttributeValue; match attr { AttributeValue::Flags(flags) => { - fetch - .flags - .extend(flags.into_iter().cloned().map(Flag::from)); + fetch.flags.extend(flags.iter().cloned().map(Flag::from)); } AttributeValue::Uid(uid) => fetch.uid = Some(*uid), AttributeValue::Rfc822Size(sz) => fetch.size = Some(*sz),