Skip to content

Commit 8895fd8

Browse files
committed
clippy
1 parent 67051f4 commit 8895fd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/self_reporting.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
33
use std::collections::{BTreeMap, BTreeSet};
44

5-
use anyhow::{ensure, Context as _, Result};
5+
use anyhow::{Context as _, Result, ensure};
66
use deltachat_derive::FromSql;
77
use pgp::types::PublicKeyTrait;
88
use serde::Serialize;
99

1010
use crate::chat::{self, ChatId, ChatVisibility, MuteDuration, ProtectionStatus};
1111
use crate::config::Config;
1212
use crate::constants::{Chattype, DC_CHAT_ID_TRASH};
13-
use crate::contact::{import_vcard, mark_contact_id_as_verified, ContactId, Origin};
14-
use crate::context::{get_version_str, Context};
13+
use crate::contact::{ContactId, Origin, import_vcard, mark_contact_id_as_verified};
14+
use crate::context::{Context, get_version_str};
1515
use crate::download::DownloadState;
1616
use crate::key::load_self_public_key;
1717
use crate::log::LogExt;
@@ -118,7 +118,7 @@ async fn get_contact_stats(context: &Context) -> Result<Vec<ContactStat>> {
118118
.await?;
119119

120120
// Fill TransitiveViaBot and transitive_chain
121-
for contact in contacts.iter_mut() {
121+
for contact in &mut contacts {
122122
if contact.verified == VerifiedStatus::Transitive {
123123
let mut transitive_chain: u32 = 0;
124124
let mut has_bot = false;
@@ -152,7 +152,7 @@ async fn get_contact_stats(context: &Context) -> Result<Vec<ContactStat>> {
152152
}
153153

154154
// Fill direct_chat
155-
for contact in contacts.iter_mut() {
155+
for contact in &mut contacts {
156156
let direct_chat = context
157157
.sql
158158
.exists(

0 commit comments

Comments
 (0)