This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ ordslice = "0.3"
59
59
crossbeam-channel = " 0.5"
60
60
toml = " 0.5"
61
61
toml_edit = { version = " 0.14.3" , features = [" easy" ] }
62
- heck = " 0.3 "
62
+ heck = " 0.4 "
63
63
64
64
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
65
65
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ impl Config {
243
243
244
244
if let serde_json:: Value :: Object ( map) = val {
245
245
let seq = serde:: de:: value:: MapDeserializer :: new ( map. iter ( ) . filter_map ( |( k, v) | {
246
- use heck:: SnakeCase ;
246
+ use heck:: ToSnakeCase ;
247
247
let snake_case = k. to_snake_case ( ) ;
248
248
let vec = dups. entry ( snake_case. clone ( ) ) . or_default ( ) ;
249
249
vec. push ( k. to_string ( ) ) ;
Original file line number Diff line number Diff line change @@ -2193,22 +2193,22 @@ fn client_init_impl(convert_case: fn(&str) -> String) {
2193
2193
2194
2194
#[ test]
2195
2195
fn client_init_with_configuration_mixed_case ( ) {
2196
- client_init_impl ( heck:: MixedCase :: to_mixed_case ) ;
2196
+ client_init_impl ( heck:: ToLowerCamelCase :: to_lower_camel_case ) ;
2197
2197
}
2198
2198
2199
2199
#[ test]
2200
2200
fn client_init_with_configuration_camel_case ( ) {
2201
- client_init_impl ( heck:: CamelCase :: to_camel_case ) ;
2201
+ client_init_impl ( heck:: ToUpperCamelCase :: to_upper_camel_case ) ;
2202
2202
}
2203
2203
2204
2204
#[ test]
2205
2205
fn client_init_with_configuration_snake_case ( ) {
2206
- client_init_impl ( heck:: SnakeCase :: to_snake_case) ;
2206
+ client_init_impl ( heck:: ToSnakeCase :: to_snake_case) ;
2207
2207
}
2208
2208
2209
2209
#[ test]
2210
2210
fn client_init_with_configuration_kebab_case ( ) {
2211
- client_init_impl ( heck:: KebabCase :: to_kebab_case) ;
2211
+ client_init_impl ( heck:: ToKebabCase :: to_kebab_case) ;
2212
2212
}
2213
2213
2214
2214
#[ test]
You can’t perform that action at this time.
0 commit comments