Skip to content

Commit

Permalink
matrix_sdk_crypto: Fix clippy warnings add wasm emscripten to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Aug 5, 2020
1 parent ffdb9c4 commit a3b4cab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Cargo.lock
target
master.zip
emsdk-*
3 changes: 1 addition & 2 deletions matrix_sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
12 changes: 2 additions & 10 deletions matrix_sdk_crypto/src/verification/sas/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit a3b4cab

Please sign in to comment.