Skip to content

Commit 3491dc6

Browse files
committed
Fix tests
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
1 parent 65ecac9 commit 3491dc6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/numberparse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ impl<'de> Deserializer<'de> {
396396
#[inline(never)]
397397
#[allow(clippy::cast_possible_wrap)]
398398
fn parse_large_integer(idx: usize, buf: &[u8], negative: bool) -> Result<StaticNode> {
399-
use std::convert::TryFrom;
400399
let mut digitcount = if negative { 1 } else { 0 };
401400
let mut i: u128;
402401
let mut d = unsafe { *buf.get_unchecked(digitcount) };

src/sse42/stage1.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ impl Stage1Parse<__m128i> for SimdInput {
234234
// needs to be large enough to handle this
235235
//TODO: usize was u32 here does this matter?
236236
#[cfg_attr(not(feature = "no-inline"), inline(always))]
237-
#[allow(clippy::cast_possible_wrap, clippy::cast_ptr_alignment)]
237+
#[allow(
238+
clippy::cast_possible_wrap,
239+
clippy::cast_ptr_alignment,
240+
clippy::uninit_vec
241+
)]
238242
fn flatten_bits(base: &mut Vec<u32>, idx: u32, mut bits: u64) {
239243
let cnt: usize = bits.count_ones() as usize;
240244
let mut l = base.len();

tests/serde_128_bit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
fn lgostash_int_bug() {
55
use serde::Deserialize;
66
use simd_json::serde::from_slice;
7-
#[serde(untagged)]
87
#[derive(Deserialize, Debug, PartialEq)]
8+
#[serde(untagged)]
99
pub enum RawMessageMetricValue {
1010
Boolean(bool),
1111
Float(f64),

0 commit comments

Comments
 (0)