matrix_sdk_crypto: Fix clippy warnings add wasm emscripten to .gitignore

master
Devin Ragotzy 2020-08-04 17:42:24 -04:00
parent ffdb9c4a79
commit a3b4cab22e
3 changed files with 5 additions and 12 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
Cargo.lock Cargo.lock
target target
master.zip
emsdk-*

View File

@ -39,8 +39,7 @@
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
pub use matrix_sdk_base::JsonStore; pub use matrix_sdk_base::JsonStore;
pub use matrix_sdk_base::{ pub use matrix_sdk_base::{
CustomEvent, Error as BaseError, EventEmitter, Room, RoomState, Session, StateStore, CustomEvent, Error as BaseError, EventEmitter, Room, RoomState, Session, StateStore, SyncRoom,
SyncRoom,
}; };
#[cfg(feature = "encryption")] #[cfg(feature = "encryption")]
pub use matrix_sdk_base::{Device, TrustState}; pub use matrix_sdk_base::{Device, TrustState};

View File

@ -442,19 +442,11 @@ impl InnerSas {
} }
fn is_done(&self) -> bool { fn is_done(&self) -> bool {
if let InnerSas::Done(_) = self { matches!(self, InnerSas::Done(_))
true
} else {
false
}
} }
fn is_canceled(&self) -> bool { fn is_canceled(&self) -> bool {
if let InnerSas::Canceled(_) = self { matches!(self, InnerSas::Canceled(_))
true
} else {
false
}
} }
fn verification_flow_id(&self) -> Arc<String> { fn verification_flow_id(&self) -> Arc<String> {