From 3619af02ad49fd60740f993f83eb0f6a5fe83c25 Mon Sep 17 00:00:00 2001 From: discord9 Date: Wed, 4 Nov 2026 16:53:24 +0800 Subject: [PATCH] chore: satisfy clippy for the raw series transport The workspace clippy run rejects a redundant rebinding, a constant-size `chunks_exact`, and an implicit `String` clone in the tests these commits carry. No behavior changes. Signed-off-by: discord9 --- src/promql/src/extension_plan/raw_series_source.rs | 4 +++- src/query/src/query_engine/state.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/promql/src/extension_plan/raw_series_source.rs b/src/promql/src/extension_plan/raw_series_source.rs index 913d03efacd..d42c81367bd 100644 --- a/src/promql/src/extension_plan/raw_series_source.rs +++ b/src/promql/src/extension_plan/raw_series_source.rs @@ -433,7 +433,9 @@ mod tests { fn fixture_bytes() -> Vec { let hex = FIXTURE.trim().as_bytes(); assert_eq!(hex.len() % 2, 0); - hex.chunks_exact(2) + hex.as_chunks::<2>() + .0 + .iter() .map(|pair| u8::from_str_radix(std::str::from_utf8(pair).unwrap(), 16).unwrap()) .collect() } diff --git a/src/query/src/query_engine/state.rs b/src/query/src/query_engine/state.rs index 377e54ae4be..039af3525cd 100644 --- a/src/query/src/query_engine/state.rs +++ b/src/query/src/query_engine/state.rs @@ -1031,7 +1031,7 @@ mod tests { index, )) as Arc, - raw_schema.field(index).name().to_string(), + raw_schema.field(index).name().clone(), ) }) .collect::>(),