From 104787150a13c0fee1c113e8b7cc3ecf1c1798eb Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Fri, 10 Jan 2025 12:25:10 -0500 Subject: [PATCH] lint --- xmtp_mls/src/storage/encrypted_store/consent_record.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmtp_mls/src/storage/encrypted_store/consent_record.rs b/xmtp_mls/src/storage/encrypted_store/consent_record.rs index 469a0f744..2c65511cc 100644 --- a/xmtp_mls/src/storage/encrypted_store/consent_record.rs +++ b/xmtp_mls/src/storage/encrypted_store/consent_record.rs @@ -80,13 +80,13 @@ impl DbConnection { let changed = self.raw_query(|conn| -> diesel::QueryResult<_> { let existing: Vec = query.load(conn)?; let changed: Vec<_> = records - .to_vec() - .into_iter() + .iter() + .cloned() .filter(|r| !existing.contains(r)) .collect(); conn.transaction::<_, diesel::result::Error, _>(|conn| { - for record in records.into_iter() { + for record in records.iter() { diesel::insert_into(dsl::consent_records) .values(record) .on_conflict((dsl::entity_type, dsl::entity))