We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62673e2 commit f3fe8bdCopy full SHA for f3fe8bd
src/error.rs
@@ -730,7 +730,7 @@ pub(crate) struct ErrorImpl<E = ()> {
730
// avoids converting `p` into a reference.
731
unsafe fn vtable(p: NonNull<ErrorImpl>) -> &'static ErrorVTable {
732
// NOTE: This assumes that `ErrorVTable` is the first field of ErrorImpl.
733
- *p.as_ptr().cast::<&'static ErrorVTable>()
+ *(p.as_ptr() as *const &'static ErrorVTable)
734
}
735
736
// repr C to ensure that ContextError<C, E> has the same layout as
0 commit comments