Skip to content

Commit

Permalink
Ok don't make DSTs be 'static
Browse files Browse the repository at this point in the history
  • Loading branch information
¨Jeff committed Jun 11, 2023
1 parent 7705b72 commit 95cbf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ff/src/fields/field_hashers/expander/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ pub trait AsDST {
}
}

impl AsDST for &'static [u8] {
impl AsDST for &[u8] {
fn as_dst(&self) -> &[u8] {
assert!(self.len() < MAX_DST_LENGTH);
self
}
}
impl<const N: usize> AsDST for &'static [u8; N] {
impl<const N: usize> AsDST for &[u8; N] {
fn as_dst(&self) -> &[u8] {
assert!(self.len() < MAX_DST_LENGTH);
self.as_ref()
Expand Down

0 comments on commit 95cbf11

Please sign in to comment.