Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Crossley <[email protected]>
  • Loading branch information
jcrossley3 committed Dec 6, 2024
1 parent a94fede commit 60c6097
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions common/src/db/query/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ impl TryFrom<(&str, Operator, &Vec<String>, &Columns)> for Filter {
|s| match columns.translate(field, &operator.to_string(), s) {
Some(x) => q(&x).filter_for(columns),
None => columns.for_field(field).and_then(|(expr, col_def)| {
Arg::parse(s, col_def.get_column_type()).and_then(|v| {
Ok(Filter {
operands: Operand::Simple(expr.clone(), v),
operator,
})
Arg::parse(s, col_def.get_column_type()).map(|v| Filter {
operands: Operand::Simple(expr.clone(), v),
operator,
})
}),
},
Expand Down

0 comments on commit 60c6097

Please sign in to comment.