From 5d5a3044c823af6b44bdda73652dddcf608ea62b Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 21 Mar 2024 09:14:56 +0100 Subject: [PATCH] chore: Avoid importing types redundantly. `TryFrom` and `TryInto` are imported redundantly. They are already defined in `core::prelude::rust_2021` which is automatically imported. This is generating warnings on my side. This patch fixes that. --- crates/matrix-sdk-crypto/src/identities/device.rs | 1 - crates/matrix-sdk-crypto/src/verification/event_enums.rs | 5 +---- crates/matrix-sdk-crypto/src/verification/machine.rs | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/identities/device.rs b/crates/matrix-sdk-crypto/src/identities/device.rs index 8fc0cc763..37b578354 100644 --- a/crates/matrix-sdk-crypto/src/identities/device.rs +++ b/crates/matrix-sdk-crypto/src/identities/device.rs @@ -14,7 +14,6 @@ use std::{ collections::{BTreeMap, HashMap}, - convert::{TryFrom, TryInto}, ops::Deref, sync::{ atomic::{AtomicBool, Ordering}, diff --git a/crates/matrix-sdk-crypto/src/verification/event_enums.rs b/crates/matrix-sdk-crypto/src/verification/event_enums.rs index 146d5a9a6..103ce9125 100644 --- a/crates/matrix-sdk-crypto/src/verification/event_enums.rs +++ b/crates/matrix-sdk-crypto/src/verification/event_enums.rs @@ -12,10 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::{ - collections::BTreeMap, - convert::{TryFrom, TryInto}, -}; +use std::collections::BTreeMap; use as_variant::as_variant; use ruma::{ diff --git a/crates/matrix-sdk-crypto/src/verification/machine.rs b/crates/matrix-sdk-crypto/src/verification/machine.rs index 5858a5d83..46a157376 100644 --- a/crates/matrix-sdk-crypto/src/verification/machine.rs +++ b/crates/matrix-sdk-crypto/src/verification/machine.rs @@ -14,7 +14,6 @@ use std::{ collections::HashMap, - convert::{TryFrom, TryInto}, sync::{Arc, RwLock as StdRwLock}, };