fix(rust): not sure why clippy is suddenly unhappy (#794)

should fix the error on top of main


https://github.com/lancedb/lancedb/actions/runs/7457190471/job/20288985725
This commit is contained in:
Chang She
2024-01-09 19:27:38 -08:00
committed by GitHub
parent 99ba5331f0
commit 629379a532

View File

@@ -50,7 +50,7 @@ pub(crate) fn record_batch_to_buffer(batches: Vec<RecordBatch>) -> Result<Vec<u8
return Ok(Vec::new());
}
let schema = batches.get(0).unwrap().schema();
let schema = batches.first().unwrap().schema();
let mut fr = FileWriter::try_new(Vec::new(), schema.deref())?;
for batch in batches.iter() {
fr.write(batch)?