Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <stjepang@gmail.com>
- Loading branch information