Skip to content

Commit b3d17bb

Browse files
committed
Update convert_case to 0.11.0
1 parent 660e4ae commit b3d17bb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

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

kinded_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories = ["data-structures", "rust-patterns"]
1616
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1717

1818
[dependencies]
19-
convert_case = "0.6.0"
19+
convert_case = "0.11.0"
2020
proc-macro2 = "1.0"
2121
quote = "1.0"
2222
syn = { version = "2.0", features = ["extra-traits", "full"] }

kinded_macros/src/models.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ pub enum DisplayCase {
217217
Upper,
218218
}
219219

220-
impl From<DisplayCase> for convert_case::Case {
221-
fn from(display_case: DisplayCase) -> convert_case::Case {
220+
impl From<DisplayCase> for convert_case::Case<'static> {
221+
fn from(display_case: DisplayCase) -> convert_case::Case<'static> {
222222
use convert_case::Case;
223223

224224
// Note that convert_case use slightly different names than serde.
225225
match display_case {
226226
DisplayCase::Snake => Case::Snake,
227227
DisplayCase::Camel => Case::Camel,
228228
DisplayCase::Pascal => Case::Pascal,
229-
DisplayCase::ScreamingSnake => Case::ScreamingSnake,
229+
DisplayCase::ScreamingSnake => Case::Constant,
230230
DisplayCase::Kebab => Case::Kebab,
231231
DisplayCase::ScreamingKebab => Case::Cobol,
232232
DisplayCase::Title => Case::Title,
@@ -255,7 +255,7 @@ impl DisplayCase {
255255

256256
pub fn apply(self, s: &str) -> String {
257257
use convert_case::{Case, Casing};
258-
let case: Case = self.into();
258+
let case: Case<'static> = self.into();
259259
s.to_case(case)
260260
}
261261
}

0 commit comments

Comments
 (0)