Skip to content

Commit 50c6bc8

Browse files
committed
lint
1 parent f72d19f commit 50c6bc8

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,6 @@ impl TableScan {
27742774
///
27752775
/// This method accepts column indices for backward compatibility and
27762776
/// converts them internally to column expressions.
2777-
#[expect(clippy::needless_pass_by_value)]
27782777
pub fn try_new(
27792778
table_name: impl Into<TableReference>,
27802779
table_source: Arc<dyn TableSource>,

datafusion/substrait/src/logical_plan/producer/rel/read_rel.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ pub fn from_table_scan(
166166
// We need to construct this from the source schema and scan indices since
167167
// `projected_schema` is the final output schema after complex projections.
168168
let scan_output_schema = {
169-
let indices = scan_indices.as_ref().expect("scan_indices should be Some when remainder_projection is Some");
169+
let indices = scan_indices
170+
.as_ref()
171+
.expect("scan_indices should be Some when remainder_projection is Some");
170172
let projected_arrow_schema = source_schema.project(indices)?;
171173
Arc::new(DFSchema::try_from_qualified_schema(
172174
scan.table_name.clone(),
@@ -179,8 +181,10 @@ pub fn from_table_scan(
179181
.map(|e| producer.handle_expr(e, &scan_output_schema))
180182
.collect::<datafusion::common::Result<Vec<_>>>()?;
181183

182-
let emit_kind =
183-
create_project_remapping(expressions.len(), scan_output_schema.fields().len());
184+
let emit_kind = create_project_remapping(
185+
expressions.len(),
186+
scan_output_schema.fields().len(),
187+
);
184188
let common = RelCommon {
185189
emit_kind: Some(emit_kind),
186190
hint: None,

0 commit comments

Comments
 (0)