Skip to content

Commit

Permalink
Make Signature::new a const fn (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp authored Nov 26, 2024
1 parent 4ad7e39 commit 33f8927
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/primitives/src/signature/sig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ impl Signature {
}

/// Instantiate a new signature from `r`, `s`, and `v` values.
#[allow(clippy::missing_const_for_fn)]
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 33f8927

Please sign in to comment.