139 |
#[allow(clippy::cast_slice_from_raw_parts)]
|
140 |
fn deref(&self) -> &VariantTy {
|
453 |
#[doc(hidden)]
|
454 |
#[allow(clippy::cast_slice_from_raw_parts)]
|
455 |
pub unsafe fn from_ptr<'a>(ptr: *const ffi::GVariantType) -> &'a VariantTy {
|
228 |
// Nightly clippy warns about this but ptr::from_raw_parts_mut isn't stable yet.
|
229 |
#[allow(clippy::cast_slice_from_raw_parts)]
|
230 |
let ptr = from_raw_parts_mut(self.buffer_storage, self.capacity) as *mut [Slot<T>];
|