Skip to content

Commit d45ee65

Browse files
committed
clippy
1 parent 1537545 commit d45ee65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • crates
    • iceberg/src/scan
    • integrations/datafusion/src/physical_plan

crates/iceberg/src/scan/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl SnapshotRange {
8181
// Walk backwards from to_snapshot to from_snapshot
8282
while let Some(id) = current_id {
8383
let snapshot = table_metadata.snapshot_by_id(id).ok_or_else(|| {
84-
Error::new(ErrorKind::DataInvalid, format!("Snapshot {} not found", id))
84+
Error::new(ErrorKind::DataInvalid, format!("Snapshot {id} not found"))
8585
})?;
8686

8787
// Validate operation is APPEND
@@ -112,8 +112,7 @@ impl SnapshotRange {
112112
Err(Error::new(
113113
ErrorKind::DataInvalid,
114114
format!(
115-
"from_snapshot {} is not an ancestor of to_snapshot {}",
116-
from_snapshot_id, to_snapshot_id
115+
"from_snapshot {from_snapshot_id} is not an ancestor of to_snapshot {to_snapshot_id}",
117116
),
118117
))
119118
}

crates/integrations/datafusion/src/physical_plan/scan.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ pub struct IcebergTableScan {
6161

6262
impl IcebergTableScan {
6363
/// Creates a new [`IcebergTableScan`] object.
64+
#[allow(clippy::too_many_arguments)]
6465
pub(crate) fn new(
6566
table: Table,
6667
snapshot_id: Option<i64>,

0 commit comments

Comments
 (0)