Commit ee3cea3
committed
rust: fix drop in
Calling `drop_in_place` on a `ManuallyDrop<T>` is a no-op. This commit
switches the code to call `ManuallDrop::drop` instead, which actually
drops the inner `T`.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>RevocableMutex
1 parent 73bd4bb commit ee3cea3
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments