We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustfmt
util/fuzz_wrappers.rs
1 parent 6b36273 commit 8fb3c3fCopy full SHA for 8fb3c3f
lightning/src/util/fuzz_wrappers.rs
@@ -8,19 +8,17 @@
8
// licenses.
9
10
macro_rules! hash_to_message {
11
- ($slice: expr) => {
+ ($slice: expr) => {{
12
+ #[cfg(not(fuzzing))]
13
{
- #[cfg(not(fuzzing))]
14
- {
15
- ::bitcoin::secp256k1::Message::from_digest_slice($slice).unwrap()
16
- }
17
- #[cfg(fuzzing)]
18
19
- match ::bitcoin::secp256k1::Message::from_digest_slice($slice) {
20
- Ok(msg) => msg,
21
- Err(_) => ::bitcoin::secp256k1::Message::from_digest([1; 32])
22
+ ::bitcoin::secp256k1::Message::from_digest_slice($slice).unwrap()
+ }
+ #[cfg(fuzzing)]
+ {
+ match ::bitcoin::secp256k1::Message::from_digest_slice($slice) {
+ Ok(msg) => msg,
+ Err(_) => ::bitcoin::secp256k1::Message::from_digest([1; 32]),
23
}
24
25
+ }};
26
0 commit comments