Skip to content

Commit

Permalink
fix(rustler_codegen): warnings for non-snake case atom module names
Browse files Browse the repository at this point in the history
  • Loading branch information
bcksl committed Oct 26, 2023
1 parent 7cbfdd2 commit 842aea7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions rustler_codegen/src/ex_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput, add_exception: bool) -> Toke
};

let gen = quote! {
#[allow(non_snake_case)]
mod #atoms_module_name {
#atom_defs
}
Expand Down
1 change: 1 addition & 0 deletions rustler_codegen/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput) -> TokenStream {
};

let gen = quote! {
#[allow(non_snake_case)]
mod #atoms_module_name {
#atom_defs
}
Expand Down
1 change: 1 addition & 0 deletions rustler_codegen/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput) -> TokenStream {
};

let gen = quote! {
#[allow(non_snake_case)]
mod #atoms_module_name {
#atom_defs
}
Expand Down
1 change: 1 addition & 0 deletions rustler_codegen/src/tagged_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput) -> TokenStream {
};

let gen = quote! {
#[allow(non_snake_case)]
mod #atoms_module_name {
#atom_defs
}
Expand Down
1 change: 1 addition & 0 deletions rustler_codegen/src/unit_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pub fn transcoder_decorator(ast: &syn::DeriveInput) -> TokenStream {
};

let gen = quote! {
#[allow(non_snake_case)]
mod #atoms_module_name {
#atom_defs
}
Expand Down

0 comments on commit 842aea7

Please sign in to comment.