@@ -59,6 +59,7 @@ impl Executor {
5959}
6060
6161impl PlanVisitor for Executor {
62+ #[ allow( clippy:: redundant_closure_call) ]
6263 fn visit_create_function (
6364 & self ,
6465 plan : & CreateFunctionPlan ,
@@ -98,6 +99,7 @@ impl PlanVisitor for Executor {
9899 PlanVisitorResult :: Execute ( result)
99100 }
100101
102+ #[ allow( clippy:: redundant_closure_call) ]
101103 fn visit_drop_function (
102104 & self ,
103105 plan : & DropFunctionPlan ,
@@ -148,23 +150,25 @@ impl PlanVisitor for Executor {
148150 PlanVisitorResult :: Execute ( result)
149151 }
150152
153+ #[ allow( clippy:: redundant_closure_call) ]
151154 fn visit_show_functions (
152155 & self ,
153156 _plan : & ShowFunctionsPlan ,
154157 _context : & PlanVisitorContext ,
155158 ) -> PlanVisitorResult {
156- let result = ( || -> Result < ExecuteResult , ExecuteError > {
159+ let result = {
157160 let functions = self . task_manager . list_all_functions ( ) ;
158161
159162 Ok ( ExecuteResult :: ok_with_data (
160163 format ! ( "Found {} task(s)" , functions. len( ) ) ,
161164 ShowFunctionsResult :: new ( functions) ,
162165 ) )
163- } ) ( ) ;
166+ } ;
164167
165168 PlanVisitorResult :: Execute ( result)
166169 }
167170
171+ #[ allow( clippy:: redundant_closure_call) ]
168172 fn visit_create_python_function (
169173 & self ,
170174 plan : & CreatePythonFunctionPlan ,
0 commit comments