Fix two new compiler warnings in fuzz
[rust-lightning] / fuzz / src / chanmon_consistency.rs
index 7c5875ac1ef62d31590241228027fd75b954aba2..e7cd990086163910ebd061f798325ac301ee9950 100644 (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 => {