mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 06:57:53 +01:00
Fix two new compiler warnings in fuzz
This fixes two trivial compiler warnings in fuzz that point to broken usage of explicit `panic!()`s.
This commit is contained in:
parent
6fcac8bc65
commit
d015ff250e
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ fn check_api_err(api_err: APIError) {
|
|||
_ if err.starts_with("Cannot send value that would put our balance under counterparty-announced channel reserve value") => {},
|
||||
_ if err.starts_with("Cannot send value that would overdraw remaining funds.") => {},
|
||||
_ if err.starts_with("Cannot send value that would not leave enough to pay for fees.") => {},
|
||||
_ => panic!(err),
|
||||
_ => panic!("{}", err),
|
||||
}
|
||||
},
|
||||
APIError::MonitorUpdateFailed => {
|
||||
|
|
|
@ -130,7 +130,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
|
|||
msgs::DecodeError::InvalidValue => return,
|
||||
msgs::DecodeError::BadLengthDescriptor => return,
|
||||
msgs::DecodeError::ShortRead => panic!("We picked the length..."),
|
||||
msgs::DecodeError::Io(e) => panic!(format!("{:?}", e)),
|
||||
msgs::DecodeError::Io(e) => panic!("{:?}", e),
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
|
Loading…
Add table
Reference in a new issue