test(query): keep raw frame regressions clippy clean

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2026-10-26 11:08:50 +08:00
parent 7754d08cb9
commit 12846eb5e0
2 changed files with 5 additions and 5 deletions
+1 -4
View File
@@ -3564,10 +3564,7 @@ mod tests {
for chunk in &chunks {
assert_eq!(host_a_key, chunk.primary_key.to_vec());
}
let times = chunks
.iter()
.flat_map(|chunk| timestamps(chunk))
.collect::<Vec<_>>();
let times = chunks.iter().flat_map(timestamps).collect::<Vec<_>>();
let field_1 = chunks
.iter()
.flat_map(|chunk| (0..chunk.time.len()).map(move |row| float_at(chunk, 0, row)))
+4 -1
View File
@@ -2088,8 +2088,11 @@ mod tests {
chain.join(": ")
}
/// Key, timestamps, float samples and finality from one fixture chunk.
type FrameChunkSnapshot = (Vec<u8>, Vec<i64>, Vec<f64>, bool);
/// The complete payload of a raw-series stream: key, times, float samples and finality.
fn frame_snapshot(chunks: &[RawSeriesChunk]) -> Vec<(Vec<u8>, Vec<i64>, Vec<f64>, bool)> {
fn frame_snapshot(chunks: &[RawSeriesChunk]) -> Vec<FrameChunkSnapshot> {
chunks
.iter()
.map(|chunk| {