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
247: Remove Clone for Guard r=jeehoonkang a=stjepang
While `Guard::clone()` is a nice convenience, it's not really a method we *need*.
By removing the clone impl, we enable some kinds of API. For example, a data structure might want to return a `Guard` to the user and then retrieve it back knowing it has never been cloned.
@Amanieu needs to forbid `Guard::clone()` in a certain use case. I don't remember the exact details, so perhaps he could comment what it is about.
Co-authored-by: Stjepan Glavina <[email protected]>
0 commit comments