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
target
master.zip
emsdk-*

View File

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

View File

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