From a959116af2ca8ae9fd628dd675ec404b1e904b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 28 May 2021 09:11:48 +0200 Subject: [PATCH] sdk: Fix clippy warnings --- matrix_sdk/src/client.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 965907e1..82f7023f 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -14,7 +14,11 @@ // limitations under the License. #[cfg(feature = "encryption")] -use std::{collections::BTreeMap, io::Write, path::PathBuf}; +use std::{ + collections::BTreeMap, + io::{Cursor, Write}, + path::PathBuf, +}; #[cfg(feature = "sso_login")] use std::{ collections::HashMap, @@ -24,7 +28,7 @@ use std::{ use std::{ fmt::{self, Debug}, future::Future, - io::{Cursor, Read}, + io::Read, path::Path, result::Result as StdResult, sync::Arc, @@ -38,10 +42,9 @@ use http::Response; #[cfg(feature = "encryption")] use matrix_sdk_base::crypto::{ decrypt_key_export, encrypt_key_export, olm::InboundGroupSession, store::CryptoStoreError, - OutgoingRequests, RoomMessageRequest, ToDeviceRequest, + AttachmentDecryptor, OutgoingRequests, RoomMessageRequest, ToDeviceRequest, }; use matrix_sdk_base::{ - crypto::AttachmentDecryptor, deserialized_responses::SyncResponse, events::AnyMessageEventContent, identifiers::MxcUri,