Skip to content

Commit 752dc0e

Browse files
committed
fix fmt
1 parent e85bcfb commit 752dc0e

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

crates/iceberg/src/transaction/validate.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@
1818
use std::collections::HashSet;
1919
use std::sync::Arc;
2020

21-
use futures::{Sink, SinkExt};
2221
use futures::future::try_join_all;
22+
use futures::{Sink, SinkExt};
2323
use once_cell::sync::Lazy;
2424

2525
use crate::delete_file_index::DeleteFileIndex;
2626
use crate::error::Result;
2727
use crate::scan::DeleteFileContext;
28-
use crate::spec::{
29-
DataFile, ManifestContentType, ManifestFile, Operation, SnapshotRef,
30-
};
28+
use crate::spec::{DataFile, ManifestContentType, ManifestFile, Operation, SnapshotRef};
3129
use crate::table::Table;
3230
use crate::util::snapshot::ancestors_between;
3331
use crate::{Error, ErrorKind};
@@ -131,19 +129,20 @@ pub(crate) trait SnapshotValidator {
131129
.collect::<Vec<_>>(),
132130
)
133131
.await?;
134-
132+
135133
let delete_files_ctx = manifests
136-
.iter()
137-
.flat_map(|manifest| manifest.entries())
138-
.map(|entry| DeleteFileContext {
139-
manifest_entry: entry.clone(),
140-
partition_spec_id: entry.data_file().partition_spec_id
141-
}).collect::<Vec<_>>();
142-
134+
.iter()
135+
.flat_map(|manifest| manifest.entries())
136+
.map(|entry| DeleteFileContext {
137+
manifest_entry: entry.clone(),
138+
partition_spec_id: entry.data_file().partition_spec_id,
139+
})
140+
.collect::<Vec<_>>();
141+
143142
for ctx in delete_files_ctx {
144143
delete_file_tx.send(ctx).await?
145144
}
146-
145+
147146
// todo validate if there are deletes
148147

149148
Ok(())

crates/iceberg/src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
// under the License.
1717

1818
/// Utilities for working with snapshots.
19-
pub mod snapshot;
19+
pub mod snapshot;

crates/iceberg/src/util/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ pub fn ancestors_between(
6969
ancestors_of(table_metadata, latest_snapshot_id)
7070
.take_while(move |snapshot| snapshot.snapshot_id() != oldest_snapshot_id),
7171
)
72-
}
72+
}

0 commit comments

Comments
 (0)