Merge pull request #859 from TheBlueMatt/2021-03-fix-warns

This commit is contained in:
Matt Corallo 2021-04-01 14:37:41 +00:00 committed by GitHub
commit 7665b14842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 => {

View file

@ -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),
}
}
}}