Commit 622ea62
authored
chore: use stabilized
# What does this PR do?
This PR replaces a raw cast to `AtomicUsize` to a call to `Atomic::from_ptr`, which is the official solution for this use-case (have an atomic view of a raw pointer)
# Motivation
Came to this line looking at something else. The comment mentions `from_ptr()` is unstable, which isn't anymore (since Rust 1.75). So let's pay the technical debt (one nickel at a time!).
# Additional Notes
N/A
# How to test the change?
N/A
Co-authored-by: yann.hamdaoui <yann.hamdaoui@datadoghq.com>AtomicXXX::from_ptr() (#1738)1 parent 6a02f01 commit 622ea62
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
0 commit comments