Skip to content

Commit 8eeacac

Browse files
committed
cargo clippy
1 parent b1774b5 commit 8eeacac

File tree

1 file changed

+4
-4
lines changed
  • rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols

1 file changed

+4
-4
lines changed

rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols/measure_symbol.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,10 @@ impl SymbolFactory for MeasureSymbolFactory {
636636
return Err(CubeError::user(format!(
637637
"Measure cannot mix common unnamed and named time_shifts.",
638638
)));
639-
} else if common_shift.is_some() {
640-
Some(MeasureTimeShifts::Common(common_shift.unwrap()))
641-
} else if named_shift.is_some() {
642-
Some(MeasureTimeShifts::Named(named_shift.unwrap()))
639+
} else if let Some(cs) = common_shift {
640+
Some(MeasureTimeShifts::Common(cs))
641+
} else if let Some(ns) = named_shift {
642+
Some(MeasureTimeShifts::Named(ns))
643643
} else {
644644
Some(MeasureTimeShifts::Dimensions(
645645
shifts.into_values().collect_vec(),

0 commit comments

Comments
 (0)