File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
arrow/src/compute/kernels Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -121,21 +121,27 @@ mod tests {
121121 fn test_shift_neg_int32_dict ( ) {
122122 let a: Int32DictionaryArray = [ Some ( "alpha" ) , None , Some ( "beta" ) , Some ( "alpha" ) ]
123123 . iter ( )
124+ . copied ( )
124125 . collect ( ) ;
125126 let res = shift ( & a, -1 ) . unwrap ( ) ;
126- let expected: Int32DictionaryArray =
127- [ None , Some ( "beta" ) , Some ( "alpha" ) , None ] . iter ( ) . collect ( ) ;
127+ let expected: Int32DictionaryArray = [ None , Some ( "beta" ) , Some ( "alpha" ) , None ]
128+ . iter ( )
129+ . copied ( )
130+ . collect ( ) ;
128131 assert_eq ! ( res. as_ref( ) , & expected) ;
129132 }
130133
131134 #[ test]
132135 fn test_shift_pos_int32_dict ( ) {
133136 let a: Int32DictionaryArray = [ Some ( "alpha" ) , None , Some ( "beta" ) , Some ( "alpha" ) ]
134137 . iter ( )
138+ . copied ( )
135139 . collect ( ) ;
136140 let res = shift ( & a, 1 ) . unwrap ( ) ;
137- let expected: Int32DictionaryArray =
138- [ None , Some ( "alpha" ) , None , Some ( "beta" ) ] . iter ( ) . collect ( ) ;
141+ let expected: Int32DictionaryArray = [ None , Some ( "alpha" ) , None , Some ( "beta" ) ]
142+ . iter ( )
143+ . copied ( )
144+ . collect ( ) ;
139145 assert_eq ! ( res. as_ref( ) , & expected) ;
140146 }
141147
You can’t perform that action at this time.
0 commit comments