Skip to content

Commit bab5889

Browse files
committed
fix clippy warnings
1 parent 29b81ea commit bab5889

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
@@ -148,19 +148,15 @@ impl Operation {
148148
.with_format_version(table_metadata.format_version)
149149
.with_status(Status::Added)
150150
.with_data_file(data_file)
151-
.build()
152-
.map_err(crate::spec::error::Error::from)
153-
.map_err(Error::from)
151+
.build().map_err(Error::from)
154152
});
155153

156154
let new_deletefile_iter = delete_files.into_iter().map(|data_file| {
157155
ManifestEntry::builder()
158156
.with_format_version(table_metadata.format_version)
159157
.with_status(Status::Added)
160158
.with_data_file(data_file)
161-
.build()
162-
.map_err(crate::spec::error::Error::from)
163-
.map_err(Error::from)
159+
.build().map_err(Error::from)
164160
});
165161

166162
let snapshot_id = generate_snapshot_id();

0 commit comments

Comments
 (0)