mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 22:03:07 +00:00
formatting
This commit is contained in:
parent
4df4d86555
commit
2d7a94de6a
@ -145,7 +145,11 @@ impl Field for Secp256K1Base {
|
||||
|
||||
fn from_noncanonical_i64(n: i64) -> Self {
|
||||
let f = Self::from_canonical_u64(n.unsigned_abs());
|
||||
if n < 0 { -f } else { f }
|
||||
if n < 0 {
|
||||
-f
|
||||
} else {
|
||||
f
|
||||
}
|
||||
}
|
||||
|
||||
fn from_noncanonical_u64(n: u64) -> Self {
|
||||
|
||||
@ -153,7 +153,11 @@ impl Field for Secp256K1Scalar {
|
||||
|
||||
fn from_noncanonical_i64(n: i64) -> Self {
|
||||
let f = Self::from_canonical_u64(n.unsigned_abs());
|
||||
if n < 0 { -f } else { f }
|
||||
if n < 0 {
|
||||
-f
|
||||
} else {
|
||||
f
|
||||
}
|
||||
}
|
||||
|
||||
fn from_noncanonical_u64(n: u64) -> Self {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user