mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-29 14:14:13 +00:00
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 <discord9@163.com>
This commit is contained in:
@@ -433,7 +433,9 @@ mod tests {
|
||||
fn fixture_bytes() -> Vec<u8> {
|
||||
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()
|
||||
}
|
||||
|
||||
@@ -1031,7 +1031,7 @@ mod tests {
|
||||
index,
|
||||
))
|
||||
as Arc<dyn datafusion::physical_plan::PhysicalExpr>,
|
||||
raw_schema.field(index).name().to_string(),
|
||||
raw_schema.field(index).name().clone(),
|
||||
)
|
||||
})
|
||||
.collect::<Vec<_>>(),
|
||||
|
||||
Reference in New Issue
Block a user