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
It is better being explicit in your intentions. So, when the following
criteria are met, use Box::leak instead of Box::into_raw:
- ownership is already transfered by some other means,
- value of Box::into_raw is not used, i.e. it looks like a statement
rather than as an expression.
This is my personal opinion, and it is based absolutely on nothing.
0 commit comments