From a33934e00acf940e981e08d2a43e5a1e1cd48f1f Mon Sep 17 00:00:00 2001 From: Jan Kaul Date: Fri, 8 Sep 2023 09:48:13 +0200 Subject: [PATCH] fix changes --- crates/iceberg/src/spec/table_metadata.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/iceberg/src/spec/table_metadata.rs b/crates/iceberg/src/spec/table_metadata.rs index 27399fa53..890d01209 100644 --- a/crates/iceberg/src/spec/table_metadata.rs +++ b/crates/iceberg/src/spec/table_metadata.rs @@ -354,8 +354,7 @@ pub(super) mod _serde { .schemas .into_iter() .map(|schema| Ok((schema.schema_id, Arc::new(schema.try_into()?)))) - .collect::, Error>>()? - .into_iter(), + .collect::, Error>>()?, ); Ok(TableMetadata { format_version: FormatVersion::V2, @@ -681,8 +680,6 @@ mod tests { SnapshotRetention, SortDirection, SortField, SortOrder, Summary, Transform, Type, }; - use crate::error::{Error, ErrorKind}; - use super::{FormatVersion, MetadataLog, SnapshotLog}; fn check_table_metadata_serde(json: &str, expected_type: TableMetadata) {