Enable clippy::explicit_into_iter_loop

This commit is contained in:
link2xt
2023-03-12 14:51:44 +00:00
parent 2bd7781276
commit 4d620afdb8
6 changed files with 7 additions and 6 deletions

View File

@@ -418,7 +418,7 @@ impl ChatId {
ProtectionStatus::Protected => match chat.typ {
Chattype::Single | Chattype::Group | Chattype::Broadcast => {
let contact_ids = get_chat_contacts(context, self).await?;
for contact_id in contact_ids.into_iter() {
for contact_id in contact_ids {
let contact = Contact::get_by_id(context, contact_id).await?;
if contact.is_verified(context).await? != VerifiedStatus::BidirectVerified {
bail!("{} is not verified.", contact.get_display_name());