Commit 4d3b7a6
committed
rust: workqueue: fix safety comments in WorkItemPointer for Pin<KBox>
The safety comments in the `WorkItemPointer` implementation for
`Pin<KBox<T>>` incorrectly refer to `Arc::into_raw`. This implementation
uses `KBox`, not `Arc`; the comments were copied from the `Arc`
implementation. The pointer recovered in `run()` originates from
`KBox::into_raw` in the corresponding `__enqueue`, so correct the
comments to refer to `KBox`.
Suggested-by: onur-ozkan <onur-ozkan@users.noreply.github.com>
Link: #1233
Signed-off-by: zanni098 <zuhaibkhann098@gmail.com>1 parent 025fd4b commit 4d3b7a6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
| 893 | + | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| |||
0 commit comments