Skip to content

Commit

Permalink
rustfmt is wrong on this one but whatever
Browse files Browse the repository at this point in the history
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. 
rust-lang/rustfmt#5595
  • Loading branch information
burdges authored and ¨Jeff committed Apr 18, 2023
1 parent 47ad5d6 commit 60e2c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec/src/hashing/map_to_curve_hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ where
{
fn new(domain: &[u8]) -> Result<Self, HashToCurveError> {
#[cfg(test)]
M2C::check_parameters() ?;
M2C::check_parameters()?;
Ok(MapToCurveBasedHasher {
field_hasher: H2F::new(domain),
_curve_mapper: PhantomData,
Expand Down

0 comments on commit 60e2c86

Please sign in to comment.