-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
&Option<T>
-> Option<&T>
#11091
&Option<T>
-> Option<&T>
#11091
Conversation
starting_request_args
to only ref
non-Copy
&Option<T>
-> Option<&T>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to avoid cosmetic refactors but these code paths are almost never touched in other PRs so this seems ok to me. Also please write an actual description instead of a youtube link in the future.
Agreed. I also forgot to avoid this. I'll fix it now |
BTW, I've found a related lint |
* refactor `starting_request_args` to only `ref` non-`Copy` * refactor `needs_recompile` to only `ref` non-`Copy` * refactor `add_workspace_folder` to only `ref` `Some` --------- Co-authored-by: Rudxain <[email protected]>
* refactor `starting_request_args` to only `ref` non-`Copy` * refactor `needs_recompile` to only `ref` non-`Copy` * refactor `add_workspace_folder` to only `ref` `Some` --------- Co-authored-by: Rudxain <[email protected]>
* refactor `starting_request_args` to only `ref` non-`Copy` * refactor `needs_recompile` to only `ref` non-`Copy` * refactor `add_workspace_folder` to only `ref` `Some` --------- Co-authored-by: Rudxain <[email protected]>
Full explanation: "Choose the Right Option" by Logan Smith
NPO
TLDR: