You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
It is a better name. I was about to add fn swap(&mut self) -> Option<T> and realized it should really be named take. But it should be consistent with all the other ones, including also swap_map, which is not in master yet but will be soon...
The text was updated successfully, but these errors were encountered:
Make `shadow_reuse` suggestion less verbose
Closesrust-lang#7764
Make `shadow_reuse` suggestion less verbose.
changelog: [`shadow_reuse`] does not warn shadowing statement
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
It is a better name. I was about to add
fn swap(&mut self) -> Option<T>
and realized it should really be namedtake
. But it should be consistent with all the other ones, including alsoswap_map
, which is not in master yet but will be soon...The text was updated successfully, but these errors were encountered: