From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Thu, 1 Apr 2021 14:37:41 +0000 (+0000) Subject: Merge pull request #859 from TheBlueMatt/2021-03-fix-warns X-Git-Tag: v0.0.14~41 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7665b148427c7d7b11b59bcb4bb17c8fb2000d05;hp=6fcac8bc65ed6d372e0b8c367e9934c754f99ff3;p=rust-lightning Merge pull request #859 from TheBlueMatt/2021-03-fix-warns --- diff --git a/fuzz/src/chanmon_consistency.rs b/fuzz/src/chanmon_consistency.rs index 7c5875ac1..e7cd99008 100644 --- a/fuzz/src/chanmon_consistency.rs +++ b/fuzz/src/chanmon_consistency.rs @@ -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 => { diff --git a/fuzz/src/router.rs b/fuzz/src/router.rs index e93618ca7..fb720c991 100644 --- a/fuzz/src/router.rs +++ b/fuzz/src/router.rs @@ -130,7 +130,7 @@ pub fn do_test(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), } } }}