Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Sep 2, 2024
1 parent 929deb1 commit 63054d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/primitives/src/signature/sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl TryFrom<Signature> for k256::ecdsa::Signature {
type Error = k256::ecdsa::Error;

fn try_from(value: Signature) -> Result<Self, Self::Error> {
k256::ecdsa::Signature::from_scalars(value.r.to_be_bytes(), value.s.to_be_bytes())
Self::from_scalars(value.r.to_be_bytes(), value.s.to_be_bytes())
}
}

Expand Down Expand Up @@ -115,7 +115,7 @@ impl Signature {
}

/// Instantiate a new signature from `r`, `s`, and `v` values.
pub fn new(r: U256, s: U256, v: Parity) -> Self {
pub const fn new(r: U256, s: U256, v: Parity) -> Self {
Self { r, s, v }
}

Expand Down

0 comments on commit 63054d1

Please sign in to comment.