We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406fc80 commit a5a8427Copy full SHA for a5a8427
src/de/mod.rs
@@ -164,9 +164,7 @@ fn read_f128<R: Read + ?Sized>(reader: &mut R) -> Result<Decimal128> {
164
#[cfg(feature = "decimal128")]
165
#[inline]
166
fn read_f128<R: Read + ?Sized>(reader: &mut R) -> Result<Decimal128> {
167
- use std::mem;
168
-
169
- let mut local_buf: [u8; 16] = unsafe { mem::MaybeUninit::uninit().assume_init() };
+ let mut local_buf = [0u8; 16];
170
reader.read_exact(&mut local_buf)?;
171
let val = unsafe { Decimal128::from_raw_bytes_le(local_buf) };
172
Ok(val)
0 commit comments