mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-29 22:11:55 +00:00
Ptr read only needs a const ptr
This commit is contained in:
parent
6b25b2f242
commit
83f63a6544
@ -384,7 +384,7 @@ unsafe impl Sync for Error {}
|
||||
impl Drop for Error {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
let inner = ptr::read(&mut self.inner);
|
||||
let inner = ptr::read(&self.inner);
|
||||
let erased = ManuallyDrop::into_inner(inner);
|
||||
(erased.vtable.object_drop)(erased);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user