File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ len_without_is_empty = "allow"
105105len_zero = " allow"
106106let_and_return = " allow"
107107manual_flatten = " allow"
108- manual_map = " allow"
109108manual_range_contains = " allow"
110109manual_strip = " allow"
111110map_clone = " allow"
Original file line number Diff line number Diff line change @@ -754,11 +754,7 @@ impl CubeScanOneShotStream {
754754 }
755755
756756 fn poll_next ( & mut self ) -> Option < ArrowResult < RecordBatch > > {
757- if let Some ( batch) = self . data . take ( ) {
758- Some ( Ok ( batch) )
759- } else {
760- None
761- }
757+ self . data . take ( ) . map ( Ok )
762758 }
763759}
764760
Original file line number Diff line number Diff line change @@ -2237,10 +2237,7 @@ pub fn create_pg_get_constraintdef_udf() -> ScalarUDF {
22372237 let oids_arr = downcast_primitive_arg ! ( args[ 0 ] , "oid" , OidType ) ;
22382238 let result = oids_arr
22392239 . iter ( )
2240- . map ( |oid| match oid {
2241- Some ( _oid) => Some ( "PRIMARY KEY (oid)" . to_string ( ) ) ,
2242- _ => None ,
2243- } )
2240+ . map ( |oid| oid. map ( |_oid| "PRIMARY KEY (oid)" . to_string ( ) ) )
22442241 . collect :: < StringArray > ( ) ;
22452242
22462243 Ok ( Arc :: new ( result) )
You can’t perform that action at this time.
0 commit comments