Twitter | Pretraživanje | |
rust-analyzer
Instead of adding a bool parameter to a function, consider providing two functions, do_foo and do_bar. Even if you don't do this, rust-analyzer will try to make call-site more readable :-)
Reply Retweet Označi sa "sviđa mi se" More
rust-analyzer 15. sij
Odgovor korisniku/ci @rust_analyzer
This feature was implemented by in .
Reply Retweet Označi sa "sviđa mi se"
Ted Mielczarek 29. sij
Odgovor korisniku/ci @rust_analyzer
Add a refactoring option that replaces bool params with a new enum. 🙂
Reply Retweet Označi sa "sviđa mi se"