File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,20 +33,7 @@ impl JSONCell {
3333 pub fn try_new ( mut buf : Vec < u8 > ) -> Result < Self , SimdParseError > {
3434 let value = to_borrowed_value ( & mut buf) ?;
3535 // SAFETY: This is safe because `buf` is owned by the `JSONCell` struct,
36- #[ allow( unused_mut) ]
37- let mut value =
38- unsafe { std:: mem:: transmute :: < BorrowedValue < ' _ > , BorrowedValue < ' static > > ( value) } ;
39-
40- #[ cfg( feature = "package_json_raw_json_api" ) ]
41- if let Some ( json_object) = value. as_object_mut ( ) {
42- json_object. remove ( "description" ) ;
43- json_object. remove ( "keywords" ) ;
44- json_object. remove ( "scripts" ) ;
45- json_object. remove ( "dependencies" ) ;
46- json_object. remove ( "devDependencies" ) ;
47- json_object. remove ( "peerDependencies" ) ;
48- json_object. remove ( "optionalDependencies" ) ;
49- }
36+ let value = unsafe { std:: mem:: transmute :: < BorrowedValue < ' _ > , BorrowedValue < ' static > > ( value) } ;
5037
5138 Ok ( Self {
5239 value,
You can’t perform that action at this time.
0 commit comments