PR #2975 #717
codeql
on: dynamic
Matrix: analyze
Annotations
4 warnings
|
casting to the same type is unnecessary (`u64` -> `u64`):
src/aggregation/intermediate_agg_result.rs#L1050
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:1050:32
|
1050 | 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#L753
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:753:32
|
753 | 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#L741
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/intermediate_agg_result.rs:741:30
|
741 | .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#L1236
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/aggregation/bucket/term_agg/mod.rs:1236:9
|
1236 | 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
|