perf: faster metric aggregations and phrase-query intersection - #2975
perf: faster metric aggregations and phrase-query intersection#2975guilload wants to merge 4 commits into
clippy
4 warnings
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 4 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.96.0 (ac68faa20 2026-05-25)
- cargo 1.96.0 (30a34c682 2026-05-25)
- clippy 0.1.96 (ac68faa20c 2026-05-25)
Annotations
Check warning on line 1050 in src/aggregation/intermediate_agg_result.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
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
Check warning on line 753 in src/aggregation/intermediate_agg_result.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
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
Check warning on line 741 in src/aggregation/intermediate_agg_result.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
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
Check warning on line 1236 in src/aggregation/bucket/term_agg/mod.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
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