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"
5959crossbeam-channel = " 0.5"
6060toml = " 0.5"
6161toml_edit = { version = " 0.14.3" , features = [" easy" ] }
62- heck = " 0.3 "
62+ heck = " 0.4 "
6363
6464# A noop dependency that changes in the Rust repository, it's a bit of a hack.
6565# 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 {
243243
244244 if let serde_json:: Value :: Object ( map) = val {
245245 let seq = serde:: de:: value:: MapDeserializer :: new ( map. iter ( ) . filter_map ( |( k, v) | {
246- use heck:: SnakeCase ;
246+ use heck:: ToSnakeCase ;
247247 let snake_case = k. to_snake_case ( ) ;
248248 let vec = dups. entry ( snake_case. clone ( ) ) . or_default ( ) ;
249249 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) {
21932193
21942194#[ test]
21952195fn 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 ) ;
21972197}
21982198
21992199#[ test]
22002200fn 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 ) ;
22022202}
22032203
22042204#[ test]
22052205fn client_init_with_configuration_snake_case ( ) {
2206- client_init_impl ( heck:: SnakeCase :: to_snake_case) ;
2206+ client_init_impl ( heck:: ToSnakeCase :: to_snake_case) ;
22072207}
22082208
22092209#[ test]
22102210fn client_init_with_configuration_kebab_case ( ) {
2211- client_init_impl ( heck:: KebabCase :: to_kebab_case) ;
2211+ client_init_impl ( heck:: ToKebabCase :: to_kebab_case) ;
22122212}
22132213
22142214#[ test]
You can’t perform that action at this time.
0 commit comments