Commit a3252af
Merge #247
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>1 file changed
+0
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 67 | | |
78 | 68 | | |
79 | 69 | | |
| |||
433 | 423 | | |
434 | 424 | | |
435 | 425 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 426 | | |
447 | 427 | | |
448 | 428 | | |
| |||
0 commit comments