Skip to content

Commit c36755f

Browse files
build(deps): Bump convert_case from 0.8.0 to 0.9.0 (#759)
Bumps [convert_case](https://github.com/rutrum/convert-case) from 0.8.0 to 0.9.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/rutrum/convert-case/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=convert_case&package-manager=cargo&previous-version=0.8.0&new-version=0.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yota Toyama <raviqqe@gmail.com>
1 parent 22ecc5f commit c36755f

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
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.

macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ proc-macro = true
1414

1515
[dependencies]
1616
comrak = { version = "0.47.0", default-features = false }
17-
convert_case = "0.8.0"
17+
convert_case = "0.9.0"
1818
proc-macro2 = "1"
1919
quote = "1"
2020
regex = "1.12.2"

macro/src/dialect/utility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn sanitize_snake_case_identifier(name: &str) -> Result<Ident, Error> {
2121

2222
fn sanitize_name(name: &str) -> Result<Ident, Error> {
2323
// Replace any "." with "_".
24-
let mut name = name.replace('.', "_");
24+
let mut name = name.replace('.', "_").trim_end_matches('_').to_string();
2525

2626
// Add "_" suffix to avoid conflicts with existing methods.
2727
if RESERVED_NAMES.contains(&name.as_str())

macro/src/type.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use convert_case::{Case, Casing};
33
use proc_macro::TokenStream;
44
use proc_macro2::Ident;
55
use quote::quote;
6-
76
use std::error::Error;
87

98
pub fn generate(identifiers: &[Ident]) -> Result<TokenStream, Box<dyn Error>> {

macro/src/utility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn map_name(name: &str) -> String {
1111
.replace_all(name, |captures: &Captures| {
1212
captures.get(0).unwrap().as_str().replace('_', "")
1313
})
14-
.to_string()
14+
.into()
1515
}
1616

1717
#[cfg(test)]

0 commit comments

Comments
 (0)