diff --git a/libs/deer/src/impls/core/array.rs b/libs/deer/src/impls/core/array.rs index 2a7fb6ca00b..a71d3e6bda6 100644 --- a/libs/deer/src/impls/core/array.rs +++ b/libs/deer/src/impls/core/array.rs @@ -28,12 +28,12 @@ impl<'de, T: Deserialize<'de>, const N: usize> Visitor<'de> for ArrayVisitor<'de let mut result: Result<(), ArrayAccessError> = Ok(()); - // uninit_assumed_init is fine here, as `[MaybeUninit; N]` as no inhabitants, - // the code shown here is also present in 1) the rust docs and 2) as an OK example in the - // clippy docs #[allow(unsafe_code)] #[allow(clippy::uninit_assumed_init)] - // SAFETY: this is the same as `MaybeUninit::uninit_array()`, which is still unstable + // SAFETY: `uninit_assumed_init` is fine here, as `[MaybeUninit; N]` as no inhabitants, + // the code shown here is also present in 1) the rust docs and 2) as an OK example in the + // clippy docs. The code is the same as in `MaybeUninit::uninit_array()`, which is still + // unstable let mut array: [MaybeUninit; N] = unsafe { MaybeUninit::uninit().assume_init() }; let mut index = 0;