Skip to content

Commit

Permalink
Use JwkGenOutput constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Jul 13, 2023
1 parent d83e611 commit 7465727
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bindings/wasm/src/storage/jwk_gen_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ pub struct WasmJwkGenOutput(pub(crate) JwkGenOutput);
impl WasmJwkGenOutput {
#[wasm_bindgen(constructor)]
pub fn new(key_id: String, jwk: &WasmJwk) -> Self {
Self(JwkGenOutput {
key_id: KeyId::new(key_id),
jwk: jwk.clone().into(),
})
Self(JwkGenOutput::new(KeyId::new(key_id), jwk.clone().into()))
}

/// Returns the generated public JWK.
Expand Down

0 comments on commit 7465727

Please sign in to comment.