crypto: Remove some unused imports from the top level module.

master
Damir Jelić 2020-08-24 14:34:22 +02:00
parent 2bcbf1eca4
commit 8d39821a1f
2 changed files with 7 additions and 4 deletions

View File

@ -42,8 +42,8 @@ pub use device::{Device, LocalTrust, ReadOnlyDevice, UserDevices};
pub use error::{MegolmError, OlmError}; pub use error::{MegolmError, OlmError};
pub use machine::OlmMachine; pub use machine::OlmMachine;
use memory_stores::ReadOnlyUserDevices; use memory_stores::ReadOnlyUserDevices;
pub(crate) use olm::Account;
pub use olm::EncryptionSettings; pub use olm::EncryptionSettings;
pub(crate) use olm::{Account, IdentityKeys, InboundGroupSession, Session};
pub use requests::{IncomingResponse, OutgoingRequest, OutgoingRequests}; pub use requests::{IncomingResponse, OutgoingRequest, OutgoingRequests};
#[cfg(feature = "sqlite_cryptostore")] #[cfg(feature = "sqlite_cryptostore")]
pub use store::sqlite::SqliteStore; pub use store::sqlite::SqliteStore;

View File

@ -38,8 +38,8 @@ use super::{CryptoStore, CryptoStoreError, Result};
use crate::{ use crate::{
device::{LocalTrust, ReadOnlyDevice}, device::{LocalTrust, ReadOnlyDevice},
memory_stores::{DeviceStore, GroupSessionStore, ReadOnlyUserDevices, SessionStore}, memory_stores::{DeviceStore, GroupSessionStore, ReadOnlyUserDevices, SessionStore},
olm::{Account, IdentityKeys, InboundGroupSession, Session},
user_identity::UserIdentities, user_identity::UserIdentities,
Account, IdentityKeys, InboundGroupSession, Session,
}; };
/// SQLite based implementation of a `CryptoStore`. /// SQLite based implementation of a `CryptoStore`.
@ -907,7 +907,10 @@ impl std::fmt::Debug for SqliteStore {
#[cfg(test)] #[cfg(test)]
mod 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::{ use matrix_sdk_common::{
api::r0::keys::SignedKey, api::r0::keys::SignedKey,
identifiers::{room_id, user_id, DeviceId, UserId}, identifiers::{room_id, user_id, DeviceId, UserId},
@ -916,7 +919,7 @@ mod test {
use std::collections::BTreeMap; use std::collections::BTreeMap;
use tempfile::tempdir; use tempfile::tempdir;
use super::{Account, CryptoStore, InboundGroupSession, Session, SqliteStore}; use super::{CryptoStore, SqliteStore};
fn example_user_id() -> UserId { fn example_user_id() -> UserId {
user_id!("@example:localhost") user_id!("@example:localhost")