Re: [PATCH v2 3/6] rust: arc: split unsafe block, add missing comment
From: Tamir Duberstein
Date: Fri Nov 08 2024 - 07:41:24 EST
On Fri, Nov 8, 2024 at 7:37 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
> You could write `unsafe { (*self.ptr.as_ptr()).refcount.get() }` to
> avoid the as_ref call.
Doesn't `(*self.ptr.as_ptr())` have the same problem?