@@ -149,9 +149,7 @@ impl Operation {
149149 . with_format_version ( table_metadata. format_version )
150150 . with_status ( Status :: Added )
151151 . with_data_file ( data_file)
152- . build ( )
153- . map_err ( crate :: spec:: error:: Error :: from)
154- . map_err ( Error :: from)
152+ . build ( ) . map_err ( Error :: from)
155153 } ) ;
156154
157155 let snapshot_id = generate_snapshot_id ( ) ;
@@ -198,8 +196,7 @@ impl Operation {
198196 snapshot_builder. with_parent_snapshot_id ( * snapshot. snapshot_id ( ) ) ;
199197 }
200198 let snapshot = snapshot_builder
201- . build ( )
202- . map_err ( iceberg_rust_spec:: error:: Error :: from) ?;
199+ . build ( ) ?;
203200
204201 Ok ( (
205202 old_snapshot. map ( |x| TableRequirement :: AssertRefSnapshotId {
@@ -253,9 +250,7 @@ impl Operation {
253250 . with_snapshot_id ( snapshot_id)
254251 . with_sequence_number ( sequence_number)
255252 . with_data_file ( data_file. clone ( ) )
256- . build ( )
257- . map_err ( crate :: spec:: error:: Error :: from)
258- . map_err ( Error :: from)
253+ . build ( ) . map_err ( Error :: from)
259254 } ) ;
260255
261256 let manifest_schema = ManifestEntry :: schema (
@@ -347,8 +342,7 @@ impl Operation {
347342 other : additional_summary. unwrap_or_default ( ) ,
348343 } ) ;
349344 let snapshot = snapshot_builder
350- . build ( )
351- . map_err ( iceberg_rust_spec:: error:: Error :: from) ?;
345+ . build ( ) ?;
352346
353347 Ok ( (
354348 old_snapshot. map ( |x| TableRequirement :: AssertRefSnapshotId {
@@ -422,9 +416,7 @@ impl Operation {
422416 . with_format_version ( table_metadata. format_version )
423417 . with_status ( Status :: Added )
424418 . with_data_file ( data_file)
425- . build ( )
426- . map_err ( crate :: spec:: error:: Error :: from)
427- . map_err ( Error :: from)
419+ . build ( ) . map_err ( Error :: from)
428420 } ) ;
429421
430422 let snapshot_id = generate_snapshot_id ( ) ;
@@ -489,8 +481,7 @@ impl Operation {
489481 ) ;
490482 snapshot_builder. with_parent_snapshot_id ( * old_snapshot. snapshot_id ( ) ) ;
491483 let snapshot = snapshot_builder
492- . build ( )
493- . map_err ( iceberg_rust_spec:: error:: Error :: from) ?;
484+ . build ( ) ?;
494485
495486 Ok ( (
496487 Some ( TableRequirement :: AssertRefSnapshotId {
0 commit comments