File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,6 @@ impl<'de> Deserializer<'de> {
396
396
#[ inline( never) ]
397
397
#[ allow( clippy:: cast_possible_wrap) ]
398
398
fn parse_large_integer ( idx : usize , buf : & [ u8 ] , negative : bool ) -> Result < StaticNode > {
399
- use std:: convert:: TryFrom ;
400
399
let mut digitcount = if negative { 1 } else { 0 } ;
401
400
let mut i: u128 ;
402
401
let mut d = unsafe { * buf. get_unchecked ( digitcount) } ;
Original file line number Diff line number Diff line change @@ -234,7 +234,11 @@ impl Stage1Parse<__m128i> for SimdInput {
234
234
// needs to be large enough to handle this
235
235
//TODO: usize was u32 here does this matter?
236
236
#[ 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
+ ) ]
238
242
fn flatten_bits ( base : & mut Vec < u32 > , idx : u32 , mut bits : u64 ) {
239
243
let cnt: usize = bits. count_ones ( ) as usize ;
240
244
let mut l = base. len ( ) ;
Original file line number Diff line number Diff line change 4
4
fn lgostash_int_bug ( ) {
5
5
use serde:: Deserialize ;
6
6
use simd_json:: serde:: from_slice;
7
- #[ serde( untagged) ]
8
7
#[ derive( Deserialize , Debug , PartialEq ) ]
8
+ #[ serde( untagged) ]
9
9
pub enum RawMessageMetricValue {
10
10
Boolean ( bool ) ,
11
11
Float ( f64 ) ,
You can’t perform that action at this time.
0 commit comments