mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Merge pull request #859 from TheBlueMatt/2021-03-fix-warns
This commit is contained in:
commit
7665b14842
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