Skip to content

Commit

Permalink
Merge pull request #441 from philss/ps-fix-snake-case-warn
Browse files Browse the repository at this point in the history
Fix snake case warnings for rust analyzer
  • Loading branch information
evnu authored Mar 24, 2022
2 parents 3cf3620 + 32c8175 commit de83cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustler_codegen/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<'a> Context<'a> {
pub fn escape_ident_with_index(ident_str: &str, index: usize, infix: &str) -> Ident {
Ident::new(
&format!(
"RUSTLER_{}_field_{}_{}",
"rustler_{}_field_{}_{}",
infix,
index,
Self::remove_raw(ident_str)
Expand All @@ -137,7 +137,7 @@ impl<'a> Context<'a> {

pub fn escape_ident(ident_str: &str, infix: &str) -> Ident {
Ident::new(
&format!("RUSTLER_{}_field_{}", infix, Self::remove_raw(ident_str)),
&format!("rustler_{}_field_{}", infix, Self::remove_raw(ident_str)),
Span::call_site(),
)
}
Expand Down

0 comments on commit de83cd9

Please sign in to comment.