diff --git a/src/de/mod.rs b/src/de/mod.rs index 401dc432..1e87838e 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -164,9 +164,7 @@ fn read_f128(reader: &mut R) -> Result { #[cfg(feature = "decimal128")] #[inline] fn read_f128(reader: &mut R) -> Result { - use std::mem; - - let mut local_buf: [u8; 16] = unsafe { mem::MaybeUninit::uninit().assume_init() }; + let mut local_buf = [0u8; 16]; reader.read_exact(&mut local_buf)?; let val = unsafe { Decimal128::from_raw_bytes_le(local_buf) }; Ok(val)