Skip to content

Commit 0159fe3

Browse files
committed
fix clippy
1 parent c1364fc commit 0159fe3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/duckdb/src/appender/arrow.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::{ffi, Appender, Result};
22
use crate::{
3-
core::{DataChunkHandle, LogicalTypeHandle},
3+
core::DataChunkHandle,
44
error::result_from_duckdb_appender,
55
vtab::{record_batch_to_duckdb_data_chunk, to_duckdb_logical_type},
66
Error,
@@ -28,7 +28,8 @@ impl Appender<'_> {
2828
/// Will return `Err` if append column count not the same with the table schema
2929
#[inline]
3030
pub fn append_record_batch(&mut self, record_batch: RecordBatch) -> Result<()> {
31-
let fields = record_batch.schema().fields();
31+
let schema = record_batch.schema();
32+
let fields = schema.fields();
3233
let capacity = fields.len();
3334
let mut logical_types = Vec::with_capacity(capacity);
3435
for field in fields.iter() {

0 commit comments

Comments
 (0)