From 60c6097304e8531d57581a86e3afb64f6dd97625 Mon Sep 17 00:00:00 2001 From: Jim Crossley Date: Thu, 5 Dec 2024 17:07:15 -0500 Subject: [PATCH] Appease clippy Signed-off-by: Jim Crossley --- common/src/db/query/filter.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/src/db/query/filter.rs b/common/src/db/query/filter.rs index 9716c50c..27948344 100644 --- a/common/src/db/query/filter.rs +++ b/common/src/db/query/filter.rs @@ -42,11 +42,9 @@ impl TryFrom<(&str, Operator, &Vec, &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, }) }), },