Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit da2aec0

Browse files
aminyaXanewok
authored andcommitted
fix: update heck
Update Cargo.lock
1 parent b9e57e8 commit da2aec0

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ordslice = "0.3"
5959
crossbeam-channel = "0.5"
6060
toml = "0.5"
6161
toml_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`

rls/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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());

tests/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,22 +2193,22 @@ fn client_init_impl(convert_case: fn(&str) -> String) {
21932193

21942194
#[test]
21952195
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);
21972197
}
21982198

21992199
#[test]
22002200
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);
22022202
}
22032203

22042204
#[test]
22052205
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);
22072207
}
22082208

22092209
#[test]
22102210
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);
22122212
}
22132213

22142214
#[test]

0 commit comments

Comments
 (0)