Rachelint opened a new issue, #15802:
URL: https://github.com/apache/datafusion/issues/15802

   ### Is your feature request related to a problem or challenge?
   
   I found some unnecessary functions are called, due to using `unwrap_or` 
rather than `unwrap_or_else` in funcation call case (some fucntion calls may be 
not really cheap).
   I have eliminate some of them in `SessionStateBuilder::build`(#15800 ), but 
I think we should use lints to ensure it.
   
   ### Describe the solution you'd like
   
   - Add `or_fun_call` lint to crates
   - Make clippy again by eliminating the function call in `unwrap_or`
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to