projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify serialization a bit by removing the useless newtypes
[rust-lightning]
/
fuzz
/
fuzz_targets
/
router_target.rs
diff --git
a/fuzz/fuzz_targets/router_target.rs
b/fuzz/fuzz_targets/router_target.rs
index fc3e9e9ba9ace20c1de0db547b14fb88360e369b..4ccd32746e39a2b87a247a9581808ade4eb74459 100644
(file)
--- a/
fuzz/fuzz_targets/router_target.rs
+++ b/
fuzz/fuzz_targets/router_target.rs
@@
-12,7
+12,7
@@
use lightning::ln::msgs::{RoutingMessageHandler};
use lightning::ln::router::{Router, RouteHint};
use lightning::util::reset_rng_state;
use lightning::util::logger::Logger;
use lightning::ln::router::{Router, RouteHint};
use lightning::util::reset_rng_state;
use lightning::util::logger::Logger;
-use lightning::util::ser::
{Reader, Readable}
;
+use lightning::util::ser::
Readable
;
use secp256k1::key::PublicKey;
use secp256k1::Secp256k1;
use secp256k1::key::PublicKey;
use secp256k1::Secp256k1;
@@
-121,7
+121,7
@@
pub fn do_test(data: &[u8]) {
macro_rules! decode_msg {
($MsgType: path, $len: expr) => {{
macro_rules! decode_msg {
($MsgType: path, $len: expr) => {{
- let mut reader =
Reader::new(::std::io::Cursor::new(get_slice!($len)
));
+ let mut reader =
::std::io::Cursor::new(get_slice!($len
));
match <($MsgType)>::read(&mut reader) {
Ok(msg) => msg,
Err(e) => match e {
match <($MsgType)>::read(&mut reader) {
Ok(msg) => msg,
Err(e) => match e {