Skip to content

Commit 7c2cb83

Browse files
committed
fix: run rustfmt
1 parent 206940e commit 7c2cb83

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/table.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ pub(crate) fn validated_file_size(file_size_bytes: i64, file_path: &str) -> Data
6868
/// DuckLake stores record counts as signed integers in SQL. A negative value indicates
6969
/// corrupt or invalid metadata. Without this check, a negative record_count would cause
7070
/// incorrect behavior (e.g., empty ranges in full-file deletes, or incorrect row filtering).
71-
pub(crate) fn validated_record_count(
72-
record_count: i64,
73-
file_path: &str,
74-
) -> DataFusionResult<u64> {
71+
pub(crate) fn validated_record_count(record_count: i64, file_path: &str) -> DataFusionResult<u64> {
7572
u64::try_from(record_count).map_err(|_| {
7673
DataFusionError::Execution(format!(
7774
"Invalid record_count ({}) for file '{}': value must be non-negative",

src/table_deletions.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ impl TableDeletionsTable {
145145

146146
// Validate record_count before use — a negative value from corrupt metadata
147147
// would cause incorrect behavior (e.g., empty ranges in full-file deletes).
148-
validated_record_count(
149-
delete_file.data_record_count,
150-
&delete_file.data_file_path,
151-
)?;
148+
validated_record_count(delete_file.data_record_count, &delete_file.data_file_path)?;
152149

153150
Ok(Arc::new(DeletedRowsExec::new(
154151
current_delete_exec,

0 commit comments

Comments
 (0)