Skip to content

Commit 6d8b35c

Browse files
committed
fix clippy warnings
1 parent 5e22cd6 commit 6d8b35c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,15 @@ impl Operation {
154154
.with_format_version(table_metadata.format_version)
155155
.with_status(Status::Added)
156156
.with_data_file(data_file)
157-
.build()
158-
.map_err(crate::spec::error::Error::from)
159-
.map_err(Error::from)
157+
.build().map_err(Error::from)
160158
});
161159

162160
let new_deletefile_iter = delete_files.into_iter().map(|data_file| {
163161
ManifestEntry::builder()
164162
.with_format_version(table_metadata.format_version)
165163
.with_status(Status::Added)
166164
.with_data_file(data_file)
167-
.build()
168-
.map_err(crate::spec::error::Error::from)
169-
.map_err(Error::from)
165+
.build().map_err(Error::from)
170166
});
171167

172168
let snapshot_id = generate_snapshot_id();

0 commit comments

Comments
 (0)