Closed richardeoin closed 9 months ago
Specifically we cast *const T to *const UnsafeCell<T> then use the UnsafeCell::raw_get method.
*const T
*const UnsafeCell<T>
UnsafeCell::raw_get
Casts of &T to &mut T are UB. Caught by this lint.
&T
&mut T
Changes to the SPI implementation validated on hardware
Specifically we cast
*const T
to*const UnsafeCell<T>
then use theUnsafeCell::raw_get
method.