projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Macro-ize RefundBuilder
[rust-lightning]
/
lightning-invoice
/
fuzz
/
fuzz_targets
/
serde_data_part.rs
diff --git
a/lightning-invoice/fuzz/fuzz_targets/serde_data_part.rs
b/lightning-invoice/fuzz/fuzz_targets/serde_data_part.rs
index 406f96764e9971ad97abc4f7dbdfb352e94cad35..871c6c7d755ee4dad7656f7649a0681ada25f3c5 100644
(file)
--- a/
lightning-invoice/fuzz/fuzz_targets/serde_data_part.rs
+++ b/
lightning-invoice/fuzz/fuzz_targets/serde_data_part.rs
@@
-48,9
+48,9
@@
mod tests {
for (idx, c) in hex.as_bytes().iter().filter(|&&c| c != b'\n').enumerate() {
b <<= 4;
match *c {
for (idx, c) in hex.as_bytes().iter().filter(|&&c| c != b'\n').enumerate() {
b <<= 4;
match *c {
- b'A'..
.
b'F' => b |= c - b'A' + 10,
- b'a'..
.
b'f' => b |= c - b'a' + 10,
- b'0'..
.
b'9' => b |= c - b'0',
+ b'A'..
=
b'F' => b |= c - b'A' + 10,
+ b'a'..
=
b'f' => b |= c - b'a' + 10,
+ b'0'..
=
b'9' => b |= c - b'0',
_ => panic!("Bad hex"),
}
if (idx & 1) == 1 {
_ => panic!("Bad hex"),
}
if (idx & 1) == 1 {