Errors: Mark the type of an error, for clarity

We want to call ErrorReport::report() on Errors, but this isn't an
Error but only a string.
This commit is contained in:
Ian Jackson 2023-01-30 17:52:02 +00:00
parent 705638df22
commit c2e4b8b7f9
1 changed files with 2 additions and 2 deletions

View File

@ -481,10 +481,10 @@ fn padding_parameters(
};
padding_parameters_builder(reduced, netdir)
.unwrap_or_else(|e| {
.unwrap_or_else(|e: &str| {
info!(
"consensus channel padding parameters wrong, using defaults: {}",
&e
&e,
);
Some(PaddingParametersBuilder::default())
})