fixing formatting

This commit is contained in:
Benjamin Kampmann
2022-02-24 15:18:16 +01:00
parent 259ba3b794
commit cccad6104c
5 changed files with 7 additions and 9 deletions

View File

@@ -545,7 +545,7 @@ pub(crate) mod testing {
use matrix_sdk_common::locks::Mutex;
use ruma::{
api::{client::r0::keys::get_keys::Response as KeyQueryResponse, IncomingResponse},
DeviceId, UserId, device_id, user_id,
device_id, user_id, DeviceId, UserId,
};
use serde_json::json;
@@ -746,10 +746,8 @@ pub(crate) mod testing {
pub(crate) mod test {
use matrix_sdk_test::async_test;
use super::testing::{manager, device_id, other_key_query, other_user_id};
use ruma::{
DeviceId, UserId, device_id, user_id,
};
use super::testing::{device_id, manager, other_key_query, other_user_id};
use ruma::{device_id, user_id, DeviceId, UserId};
#[async_test]
async fn test_manager_creation() {

View File

@@ -989,7 +989,7 @@ pub(crate) mod test {
use matrix_sdk_test::async_test;
use ruma::{api::client::r0::keys::get_keys::Response as KeyQueryResponse, user_id};
use super::testing::{get_other_identity, get_own_identity, device};
use super::testing::{device, get_other_identity, get_own_identity};
use super::{ReadOnlyOwnUserIdentity, ReadOnlyUserIdentities, ReadOnlyUserIdentity};
use crate::{
identities::{

View File

@@ -18,6 +18,7 @@ use std::{
sync::{Arc, RwLock},
};
use crate::safe_encode::SafeEncode;
use dashmap::DashSet;
use indexed_db_futures::prelude::*;
use matrix_sdk_common::{
@@ -25,7 +26,6 @@ use matrix_sdk_common::{
locks::Mutex,
ruma::{DeviceId, RoomId, TransactionId, UserId},
};
use crate::safe_encode::SafeEncode;
use wasm_bindgen::JsValue;
use anyhow::anyhow;

View File

@@ -12,4 +12,4 @@ mod cryptostore;
pub use cryptostore::IndexeddbStore as CryptoStore;
#[cfg(target_arch = "wasm32")]
pub use state_store::IndexeddbStore as StateStore;
pub use state_store::IndexeddbStore as StateStore;

View File

@@ -14,6 +14,7 @@
use std::collections::BTreeSet;
use crate::safe_encode::SafeEncode;
use futures_util::stream;
use indexed_db_futures::prelude::*;
use matrix_sdk_common::{
@@ -31,7 +32,6 @@ use matrix_sdk_common::{
EventId, MxcUri, RoomId, RoomVersionId, UserId,
},
};
use crate::safe_encode::SafeEncode;
use serde::{Deserialize, Serialize};
use tracing::{info, warn};
use wasm_bindgen::JsValue;