Fix filter_map_identity clippy lint

This commit is contained in:
Cole Helbling 2021-05-17 13:49:11 -07:00
parent 1b07e3afec
commit e8f0cec6db
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -48,7 +48,7 @@ named!(
value!(None, many_till!(take!(1), tag_no_case!("@grahamcofborg")))
)
)))) >> eof!()
>> (Some(res.into_iter().filter_map(|x| x).collect()))
>> (Some(res.into_iter().flatten().collect()))
) | value!(None)
)
);