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 matrix_sdk_test::{async_test, test_json, EventBuilder, EventsJson};
use serde_json::json; use serde_json::json;
use std::convert::TryFrom; use std::convert::TryFrom;
#[cfg(not(target_arch = "wasm32"))]
use tempfile::tempdir; use tempfile::tempdir;
#[cfg(target_arch = "wasm32")] #[cfg(target_arch = "wasm32")]

View File

@ -1080,13 +1080,16 @@ impl Describe for MembershipChange {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use super::*; use super::*;
#[cfg(not(target_arch = "wasm32"))]
use crate::{ use crate::{
events::{room::encryption::EncryptionEventContent, Unsigned}, events::{room::encryption::EncryptionEventContent, Unsigned},
identifiers::{EventId, UserId}, identifiers::EventId,
BaseClient, Raw, Session, Raw,
}; };
use crate::{identifiers::UserId, BaseClient, Session};
use matrix_sdk_test::{async_test, sync_response, EventBuilder, EventsJson, SyncResponseFile}; use matrix_sdk_test::{async_test, sync_response, EventBuilder, EventsJson, SyncResponseFile};
#[cfg(not(target_arch = "wasm32"))]
use std::time::SystemTime; use std::time::SystemTime;
#[cfg(target_arch = "wasm32")] #[cfg(target_arch = "wasm32")]