Skip to content

Commit

Permalink
chore: Apply suggestions
Browse files Browse the repository at this point in the history
This snuck in because rust-analyzer doesn't remove trailing commas the same way it does for the format! macro.

Co-authored-by: Nick <[email protected]>
  • Loading branch information
Techassi and NickLarsenNZ authored Aug 21, 2024
1 parent 9d98236 commit 87cc5be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/stackable-versioned-macros/src/codegen/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) fn remove_deprecated_field_prefix(ident: &Ident) -> Ident {
let ident = ident.to_string();
let ident = ident.trim_start_matches(DEPRECATED_FIELD_PREFIX);

format_ident!("{ident}",)
format_ident!("{ident}")
}

/// Removes the deprecated prefix from a variant ident.
Expand All @@ -77,5 +77,5 @@ pub(crate) fn remove_deprecated_variant_prefix(ident: &Ident) -> Ident {
.trim_start_matches(DEPRECATED_VARIANT_PREFIX)
.trim_start_matches('_');

format_ident!("{ident}",)
format_ident!("{ident}")
}

0 comments on commit 87cc5be

Please sign in to comment.