Skip to content

Commit 7665b14

Browse files
authored
Merge pull request #859 from TheBlueMatt/2021-03-fix-warns
2 parents 6fcac8b + d015ff2 commit 7665b14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ fn check_api_err(api_err: APIError) {
234234
_ if err.starts_with("Cannot send value that would put our balance under counterparty-announced channel reserve value") => {},
235235
_ if err.starts_with("Cannot send value that would overdraw remaining funds.") => {},
236236
_ if err.starts_with("Cannot send value that would not leave enough to pay for fees.") => {},
237-
_ => panic!(err),
237+
_ => panic!("{}", err),
238238
}
239239
},
240240
APIError::MonitorUpdateFailed => {

fuzz/src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
130130
msgs::DecodeError::InvalidValue => return,
131131
msgs::DecodeError::BadLengthDescriptor => return,
132132
msgs::DecodeError::ShortRead => panic!("We picked the length..."),
133-
msgs::DecodeError::Io(e) => panic!(format!("{:?}", e)),
133+
msgs::DecodeError::Io(e) => panic!("{:?}", e),
134134
}
135135
}
136136
}}

0 commit comments

Comments
 (0)