Fix failing wasm test and clippy warnings for wasm

master
Devin Ragotzy 2020-08-04 17:39:25 -04:00
parent cb8d5ce8fb
commit ffdb9c4a79
2 changed files with 6 additions and 2 deletions

View File

@ -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")]

View File

@ -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")]