Allow unnecessary parentheses
Clippy emits: warning: unnecessary parentheses around assigned value Add a attribute to allow unnecessary parentheses.
This commit is contained in:
parent
3151352be6
commit
f67081a01c
|
@ -43,6 +43,7 @@ pub const SECP256K1_START_VERIFY: c_uint = 1 | (1 << 8);
|
||||||
/// Flag for context to enable signing precomputation
|
/// Flag for context to enable signing precomputation
|
||||||
pub const SECP256K1_START_SIGN: c_uint = 1 | (1 << 9);
|
pub const SECP256K1_START_SIGN: c_uint = 1 | (1 << 9);
|
||||||
/// Flag for keys to indicate uncompressed serialization format
|
/// Flag for keys to indicate uncompressed serialization format
|
||||||
|
#[allow(unused_parens)]
|
||||||
pub const SECP256K1_SER_UNCOMPRESSED: c_uint = (1 << 1);
|
pub const SECP256K1_SER_UNCOMPRESSED: c_uint = (1 << 1);
|
||||||
/// Flag for keys to indicate compressed serialization format
|
/// Flag for keys to indicate compressed serialization format
|
||||||
pub const SECP256K1_SER_COMPRESSED: c_uint = (1 << 1) | (1 << 8);
|
pub const SECP256K1_SER_COMPRESSED: c_uint = (1 << 1) | (1 << 8);
|
||||||
|
|
Loading…
Reference in New Issue