Skip to content

Commit 5150c71

Browse files
committed
fix lint
1 parent 6d06f3c commit 5150c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/functions/src/aggregates/aggregate_quantile_cont.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ where
288288
0.5f64
289289
};
290290

291-
if level < 0.0 || level > 1.0 {
291+
if !(0.0..=1.0).contains(&level) {
292292
return Err(ErrorCode::BadDataValueType(format!(
293293
"level range between [0, 1], got: {:?}",
294294
level

0 commit comments

Comments
 (0)