Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim committed Oct 11, 2022
1 parent 764e1ee commit 53d3aca
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,11 @@ impl Options {

if let Some(meta) = meta {
if meta.columns.len() != self.columns.len() {
return Err(Error::InvalidConfiguration(
format!(
"Column config mismatch. Expected {} columns, got {}",
self.columns.len(),
meta.columns.len()
)
.into(),
))
return Err(Error::InvalidConfiguration(format!(
"Column config mismatch. Expected {} columns, got {}",
self.columns.len(),
meta.columns.len()
)))
}

for c in 0..meta.columns.len() {
Expand Down

0 comments on commit 53d3aca

Please sign in to comment.