File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -344,8 +344,8 @@ mod tests {
344344 let expected_partition_spec = PartitionSpec :: builder ( )
345345 . with_spec_id ( 0 )
346346 . with_fields ( vec ! [ ] )
347- . build ( )
348- . unwrap ( ) ;
347+ . unwrap ( )
348+ . build_unchecked ( ) ;
349349
350350 assert_eq ! (
351351 metadata
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ pub struct PartitionField {
4646
4747impl PartitionField {
4848 /// To unbound partition field
49- pub fn to_unbound ( & self ) -> UnboundPartitionField {
49+ pub fn to_unbound ( self ) -> UnboundPartitionField {
5050 UnboundPartitionField {
5151 source_id : self . source_id ,
5252 partition_id : Some ( self . field_id ) ,
53- name : self . name . clone ( ) ,
54- transform : self . transform . clone ( ) ,
53+ name : self . name ,
54+ transform : self . transform ,
5555 }
5656 }
5757}
You can’t perform that action at this time.
0 commit comments