Skip to content

Commit e64e1f2

Browse files
committed
cargo fmt
1 parent 626b4bb commit e64e1f2

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

iceberg-rust/src/file_format/parquet.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ pub fn parquet_to_datafile(
257257
builder.with_equality_ids(Some(equality_ids.to_vec()));
258258
}
259259

260-
let content = builder
261-
.build()?;
260+
let content = builder.build()?;
262261
Ok(content)
263262
}
264263

iceberg-rust/src/table/transaction/operation.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ impl Operation {
149149
.with_format_version(table_metadata.format_version)
150150
.with_status(Status::Added)
151151
.with_data_file(data_file)
152-
.build().map_err(Error::from)
152+
.build()
153+
.map_err(Error::from)
153154
});
154155

155156
let snapshot_id = generate_snapshot_id();
@@ -195,8 +196,7 @@ impl Operation {
195196
if let Some(snapshot) = old_snapshot {
196197
snapshot_builder.with_parent_snapshot_id(*snapshot.snapshot_id());
197198
}
198-
let snapshot = snapshot_builder
199-
.build()?;
199+
let snapshot = snapshot_builder.build()?;
200200

201201
Ok((
202202
old_snapshot.map(|x| TableRequirement::AssertRefSnapshotId {
@@ -250,7 +250,8 @@ impl Operation {
250250
.with_snapshot_id(snapshot_id)
251251
.with_sequence_number(sequence_number)
252252
.with_data_file(data_file.clone())
253-
.build().map_err(Error::from)
253+
.build()
254+
.map_err(Error::from)
254255
});
255256

256257
let manifest_schema = ManifestEntry::schema(
@@ -341,8 +342,7 @@ impl Operation {
341342
operation: iceberg_rust_spec::spec::snapshot::Operation::Overwrite,
342343
other: additional_summary.unwrap_or_default(),
343344
});
344-
let snapshot = snapshot_builder
345-
.build()?;
345+
let snapshot = snapshot_builder.build()?;
346346

347347
Ok((
348348
old_snapshot.map(|x| TableRequirement::AssertRefSnapshotId {
@@ -416,7 +416,8 @@ impl Operation {
416416
.with_format_version(table_metadata.format_version)
417417
.with_status(Status::Added)
418418
.with_data_file(data_file)
419-
.build().map_err(Error::from)
419+
.build()
420+
.map_err(Error::from)
420421
});
421422

422423
let snapshot_id = generate_snapshot_id();
@@ -480,8 +481,7 @@ impl Operation {
480481
.schema_id(),
481482
);
482483
snapshot_builder.with_parent_snapshot_id(*old_snapshot.snapshot_id());
483-
let snapshot = snapshot_builder
484-
.build()?;
484+
let snapshot = snapshot_builder.build()?;
485485

486486
Ok((
487487
Some(TableRequirement::AssertRefSnapshotId {

0 commit comments

Comments
 (0)