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
However, passing these types by value is generally necessary to share ownership. Using references instead risks dangling lifetimes, such as when the callee outlives the caller or when all other owners are destroyed except the one holding a mistaken reference.
Consequently, (at least) the aforementioned types should be added to performance-unnecessary-copy-initialization.AllowedTypes and performance-unnecessary-value-param.AllowedTypes by default.