matrix_sdk_crypto: Fix clippy warnings add wasm emscripten to .gitignore
parent
ffdb9c4a79
commit
a3b4cab22e
|
@ -1,2 +1,4 @@
|
|||
Cargo.lock
|
||||
target
|
||||
master.zip
|
||||
emsdk-*
|
|
@ -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};
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue