Skip to content

Commit

Permalink
address compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nategraf committed Sep 14, 2023
1 parent c1471ef commit 333cb51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curve25519-dalek/src/backend/serial/risc0/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const MODULUS_CORRECTION: U256 = U256::ZERO.wrapping_sub(&P);
pub struct FieldElementR0(pub(crate) U256);

impl Debug for FieldElementR0 {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write!(
f,
"FieldElementR0(U256::from_be_hex({:?}))",
Expand Down
2 changes: 1 addition & 1 deletion curve25519-dalek/src/backend/serial/risc0/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const TWO_POW_TWO_FIFTY_SIX: U256 =
pub struct ScalarR0(pub U256);

impl Debug for ScalarR0 {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write!(f, "ScalarR0: {:?}", &self.0)
}
}
Expand Down

0 comments on commit 333cb51

Please sign in to comment.