File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -122,14 +122,6 @@ tests:
122
122
platinum/unsigned_long/60_collapse.yml :
123
123
- " *"
124
124
125
- platinum/vector-tile/10_basic.yml :
126
- # expected `i32`, found `&str`
127
- - " *"
128
-
129
- platinum/vector-tile/20_aggregations.yml :
130
- # expected `i32`, found `&str`
131
- - " *"
132
-
133
125
platinum/xpack/20_info.yml :
134
126
# Expects "trial" license but gets "enterprise"
135
127
- " XPack Info API"
Original file line number Diff line number Diff line change @@ -791,10 +791,14 @@ impl ApiCall {
791
791
let s = b. to_string ( ) ;
792
792
Ok ( quote ! { #s } )
793
793
}
794
- Yaml :: Integer ( i) => match ty. ty {
795
- TypeKind :: Long => Ok ( quote ! { #i } ) ,
794
+ Yaml :: Integer ( l) => match ty. ty {
795
+ TypeKind :: Long => Ok ( quote ! { #l } ) ,
796
+ TypeKind :: Integer => {
797
+ let i = * l as i32 ;
798
+ Ok ( quote ! { #i } )
799
+ }
796
800
_ => {
797
- let s = i . to_string ( ) ;
801
+ let s = l . to_string ( ) ;
798
802
Ok ( quote ! { #s } )
799
803
}
800
804
} ,
You can’t perform that action at this time.
0 commit comments