File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ repos:
25
25
types : [rust]
26
26
language : system
27
27
pass_filenames : false
28
+ - id : check-without-num-bigint
29
+ name : Check without num-bigint feature
30
+ entry : cargo check --no-default-features --package jiter
31
+ types : [rust]
32
+ language : system
33
+ pass_filenames : false
28
34
- id : test
29
35
name : Test
30
36
entry : cargo test --test main
Original file line number Diff line number Diff line change @@ -309,6 +309,7 @@ fn take_value_recursive<'j, 's>(
309
309
} ) ?;
310
310
match n {
311
311
NumberAny :: Int ( NumberInt :: Int ( int) ) => JsonValue :: Int ( int) ,
312
+ #[ cfg( feature = "num-bigint" ) ]
312
313
NumberAny :: Int ( NumberInt :: BigInt ( big_int) ) => JsonValue :: BigInt ( big_int) ,
313
314
NumberAny :: Float ( float) => JsonValue :: Float ( float) ,
314
315
}
@@ -386,6 +387,7 @@ fn take_value_recursive<'j, 's>(
386
387
} ) ?;
387
388
match n {
388
389
NumberAny :: Int ( NumberInt :: Int ( int) ) => JsonValue :: Int ( int) ,
390
+ #[ cfg( feature = "num-bigint" ) ]
389
391
NumberAny :: Int ( NumberInt :: BigInt ( big_int) ) => JsonValue :: BigInt ( big_int) ,
390
392
NumberAny :: Float ( float) => JsonValue :: Float ( float) ,
391
393
}
You can’t perform that action at this time.
0 commit comments