Skip to content

Commit 94e17ef

Browse files
author
Jan Kaul
committed
cargo fmt
1 parent 1cf9201 commit 94e17ef

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

catalogs/iceberg-sql-catalog/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -817,9 +817,7 @@ pub mod tests {
817817

818818
let iceberg_catalog = Arc::new(
819819
SqlCatalog::new(
820-
&format!(
821-
"postgres://postgres:postgres@{postgres_host}:{postgres_port}/postgres"
822-
),
820+
&format!("postgres://postgres:postgres@{postgres_host}:{postgres_port}/postgres"),
823821
"warehouse",
824822
object_store,
825823
)

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,7 @@ pub(crate) fn new_manifest_location(
607607
commit_uuid: &str,
608608
i: usize,
609609
) -> String {
610-
format!(
611-
"{table_metadata_location}/metadata/{commit_uuid}-m{i}.avro"
612-
)
610+
format!("{table_metadata_location}/metadata/{commit_uuid}-m{i}.avro")
613611
}
614612

615613
pub(crate) fn new_manifest_list_location(
@@ -618,9 +616,7 @@ pub(crate) fn new_manifest_list_location(
618616
attempt: i64,
619617
commit_uuid: &str,
620618
) -> String {
621-
format!(
622-
"{table_metadata_location}/metadata/snap-{snapshot_id}-{attempt}-{commit_uuid}.avro"
623-
)
619+
format!("{table_metadata_location}/metadata/snap-{snapshot_id}-{attempt}-{commit_uuid}.avro")
624620
}
625621

626622
/// To achieve fast lookups of the datafiles, the manifest tree should be somewhat balanced, meaning that manifest files should contain a similar number of datafiles.

0 commit comments

Comments
 (0)