Fix failing wasm test and clippy warnings for wasm
parent
cb8d5ce8fb
commit
ffdb9c4a79
|
@ -1877,6 +1877,7 @@ mod test {
|
|||
use matrix_sdk_test::{async_test, test_json, EventBuilder, EventsJson};
|
||||
use serde_json::json;
|
||||
use std::convert::TryFrom;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use tempfile::tempdir;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
|
|
@ -1080,13 +1080,16 @@ impl Describe for MembershipChange {
|
|||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use crate::{
|
||||
events::{room::encryption::EncryptionEventContent, Unsigned},
|
||||
identifiers::{EventId, UserId},
|
||||
BaseClient, Raw, Session,
|
||||
identifiers::EventId,
|
||||
Raw,
|
||||
};
|
||||
use crate::{identifiers::UserId, BaseClient, Session};
|
||||
use matrix_sdk_test::{async_test, sync_response, EventBuilder, EventsJson, SyncResponseFile};
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use std::time::SystemTime;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
|
Loading…
Reference in New Issue