Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Dec 9, 2024
1 parent 097b87a commit 9d184b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ where
}
}

pub(crate) const RANDOM_DOMAIN_SEPERATOR: &[u8; 32] = b"randrandrandrandrandrandrandrand";

#[cfg(test)]
mod test {
use pairing::group::Group;
Expand Down Expand Up @@ -221,5 +223,3 @@ mod test {
assert_eq!(check, pp);
}
}

pub(crate) const RANDOM_DOMAIN_SEPERATOR: &[u8; 32] = b"randrandrandrandrandrandrandrand";
2 changes: 1 addition & 1 deletion src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ impl<'de> serde::Deserialize<'de> for Scalar {

struct BytesVisitor;

impl<'de> de::Visitor<'de> for BytesVisitor {
impl de::Visitor<'_> for BytesVisitor {
type Value = Scalar;

fn expecting(&self, formatter: &mut core::fmt::Formatter) -> alloc::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/serde_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{

struct BytesVisitor<T>(PhantomData<T>);

impl<'de, T> Visitor<'de> for BytesVisitor<T>
impl<T> Visitor<'_> for BytesVisitor<T>
where
T: for<'a> TryFrom<&'a [u8]>,
{
Expand Down

0 comments on commit 9d184b8

Please sign in to comment.