Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Jul 4, 2023
1 parent dca398e commit d6b30ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-crypto-js/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ impl OlmMachine {
let me = self.inner.clone();

Ok(future_to_promise(async move {
let _ = me.backup_machine().enable_backup_v1(backup_key).await?;
me.backup_machine().enable_backup_v1(backup_key).await?;
Ok(JsValue::NULL)
}))
}
Expand Down
6 changes: 3 additions & 3 deletions bindings/matrix-sdk-crypto-js/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ pub enum SignatureState {
ValidAndTrusted = 3,
}

impl Into<SignatureState> for InnerSignatureState {
fn into(self) -> SignatureState {
match self {
impl From<InnerSignatureState> for SignatureState {
fn from(val: InnerSignatureState) -> Self {
match val {
InnerSignatureState::Missing => SignatureState::Missing,
InnerSignatureState::Invalid => SignatureState::Invalid,
InnerSignatureState::ValidButNotTrusted => SignatureState::ValidButNotTrusted,
Expand Down

0 comments on commit d6b30ae

Please sign in to comment.