crypto: Remove some unused imports from the top level module.
parent
2bcbf1eca4
commit
8d39821a1f
|
@ -42,8 +42,8 @@ pub use device::{Device, LocalTrust, ReadOnlyDevice, UserDevices};
|
|||
pub use error::{MegolmError, OlmError};
|
||||
pub use machine::OlmMachine;
|
||||
use memory_stores::ReadOnlyUserDevices;
|
||||
pub(crate) use olm::Account;
|
||||
pub use olm::EncryptionSettings;
|
||||
pub(crate) use olm::{Account, IdentityKeys, InboundGroupSession, Session};
|
||||
pub use requests::{IncomingResponse, OutgoingRequest, OutgoingRequests};
|
||||
#[cfg(feature = "sqlite_cryptostore")]
|
||||
pub use store::sqlite::SqliteStore;
|
||||
|
|
|
@ -38,8 +38,8 @@ use super::{CryptoStore, CryptoStoreError, Result};
|
|||
use crate::{
|
||||
device::{LocalTrust, ReadOnlyDevice},
|
||||
memory_stores::{DeviceStore, GroupSessionStore, ReadOnlyUserDevices, SessionStore},
|
||||
olm::{Account, IdentityKeys, InboundGroupSession, Session},
|
||||
user_identity::UserIdentities,
|
||||
Account, IdentityKeys, InboundGroupSession, Session,
|
||||
};
|
||||
|
||||
/// SQLite based implementation of a `CryptoStore`.
|
||||
|
@ -907,7 +907,10 @@ impl std::fmt::Debug for SqliteStore {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::{device::test::get_device, olm::GroupSessionKey};
|
||||
use crate::{
|
||||
device::test::get_device,
|
||||
olm::{Account, GroupSessionKey, InboundGroupSession, Session},
|
||||
};
|
||||
use matrix_sdk_common::{
|
||||
api::r0::keys::SignedKey,
|
||||
identifiers::{room_id, user_id, DeviceId, UserId},
|
||||
|
@ -916,7 +919,7 @@ mod test {
|
|||
use std::collections::BTreeMap;
|
||||
use tempfile::tempdir;
|
||||
|
||||
use super::{Account, CryptoStore, InboundGroupSession, Session, SqliteStore};
|
||||
use super::{CryptoStore, SqliteStore};
|
||||
|
||||
fn example_user_id() -> UserId {
|
||||
user_id!("@example:localhost")
|
||||
|
|
Loading…
Reference in New Issue