PR #2990 #762
codeql
on: dynamic
Matrix: analyze
Annotations
4 warnings
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/aggregation/intermediate_agg_result.rs#L1283
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:1283:32
|
1283 | doc_count: entry.doc_count as u64,
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `entry.doc_count`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
|
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/aggregation/intermediate_agg_result.rs#L890
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:890:32
|
890 | doc_count: entry.doc_count as u64,
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `entry.doc_count`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
|
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/aggregation/intermediate_agg_result.rs#L878
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:878:30
|
878 | .filter(|bucket| bucket.1.doc_count as u64 >= req.min_doc_count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bucket.1.doc_count`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
|
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/aggregation/bucket/term_agg/mod.rs#L1313
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/bucket/term_agg/mod.rs:1313:9
|
1313 | self.1.doc_count as u64
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.1.doc_count`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|