sdk: Fix clippy warnings

master
Kévin Commaille 2021-05-28 09:11:48 +02:00
parent 6367cdddbf
commit a959116af2
No known key found for this signature in database
GPG Key ID: 296D60AE1E61661C
1 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,11 @@
// limitations under the License. // limitations under the License.
#[cfg(feature = "encryption")] #[cfg(feature = "encryption")]
use std::{collections::BTreeMap, io::Write, path::PathBuf}; use std::{
collections::BTreeMap,
io::{Cursor, Write},
path::PathBuf,
};
#[cfg(feature = "sso_login")] #[cfg(feature = "sso_login")]
use std::{ use std::{
collections::HashMap, collections::HashMap,
@ -24,7 +28,7 @@ use std::{
use std::{ use std::{
fmt::{self, Debug}, fmt::{self, Debug},
future::Future, future::Future,
io::{Cursor, Read}, io::Read,
path::Path, path::Path,
result::Result as StdResult, result::Result as StdResult,
sync::Arc, sync::Arc,
@ -38,10 +42,9 @@ use http::Response;
#[cfg(feature = "encryption")] #[cfg(feature = "encryption")]
use matrix_sdk_base::crypto::{ use matrix_sdk_base::crypto::{
decrypt_key_export, encrypt_key_export, olm::InboundGroupSession, store::CryptoStoreError, decrypt_key_export, encrypt_key_export, olm::InboundGroupSession, store::CryptoStoreError,
OutgoingRequests, RoomMessageRequest, ToDeviceRequest, AttachmentDecryptor, OutgoingRequests, RoomMessageRequest, ToDeviceRequest,
}; };
use matrix_sdk_base::{ use matrix_sdk_base::{
crypto::AttachmentDecryptor,
deserialized_responses::SyncResponse, deserialized_responses::SyncResponse,
events::AnyMessageEventContent, events::AnyMessageEventContent,
identifiers::MxcUri, identifiers::MxcUri,