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 @@ -751,11 +751,7 @@ impl CubeScanOneShotStream {
751751 }
752752
753753 fn poll_next ( & mut self ) -> Option < ArrowResult < RecordBatch > > {
754- if let Some ( batch) = self . data . take ( ) {
755- Some ( Ok ( batch) )
756- } else {
757- None
758- }
754+ self . data . take ( ) . map ( Ok )
759755 }
760756}
761757
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