Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Nov 21, 2024
1 parent 85f982f commit a85be24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bindings_wasm/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,7 @@ impl Client {
.try_into()
.map_err(|_| JsError::new("public_key is not 32 bytes long."))?;

Ok(
verify_signed_with_public_context(signature_text, &signature_bytes, &public_key)
.map_err(|e| JsError::new(format!("{}", e).as_str()))?,
)
verify_signed_with_public_context(signature_text, &signature_bytes, &public_key)
.map_err(|e| JsError::new(format!("{}", e).as_str()))
}
}

0 comments on commit a85be24

Please sign in to comment.