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:
122122 platinum/unsigned_long/60_collapse.yml :
123123 - " *"
124124
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-
133125 platinum/xpack/20_info.yml :
134126 # Expects "trial" license but gets "enterprise"
135127 - " XPack Info API"
Original file line number Diff line number Diff line change @@ -791,10 +791,14 @@ impl ApiCall {
791791 let s = b. to_string ( ) ;
792792 Ok ( quote ! { #s } )
793793 }
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+ }
796800 _ => {
797- let s = i . to_string ( ) ;
801+ let s = l . to_string ( ) ;
798802 Ok ( quote ! { #s } )
799803 }
800804 } ,
You can’t perform that action at this time.
0 commit comments