Skip to content

Commit

Permalink
Fix some clippy warnings.
Browse files Browse the repository at this point in the history
Add #[allow(dead_code)] for a field that is only available in feature =
"rust_signer".

Skip wasm-bindgen version 0.2.79 per
rustwasm/wasm-bindgen#2774.
  • Loading branch information
twifkak committed Jan 25, 2022
1 parent a44d8dd commit 3f526ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
{
"matchManagers": ["github-actions"],
"groupName": "GitHub Actions"
},
{
"matchPackageNames": ["wasm-bindgen"],
"allowedVersions": "!/^0\.2\.79$/"
}
]
}
2 changes: 2 additions & 0 deletions sxg_rs/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ pub struct EcPublicKey {
}

pub struct EcPrivateKey {
// Only used when --feature=rust_signer.
#[allow(dead_code)]
d: Vec<u8>,
pub public_key: EcPublicKey,
}
Expand Down

0 comments on commit 3f526ee

Please sign in to comment.