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