Skip to content

Commit

Permalink
Merge pull request #190 from vic1707/snake_case_nutype_module
Browse files Browse the repository at this point in the history
make `__nutype_{type_name}__` compatible with clippy lint
  • Loading branch information
greyblake authored Oct 25, 2024
2 parents 9ee035d + 2678f38 commit 7f6e619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nutype_macros/src/common/gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ pub trait GenerateNewtype {

Ok(quote!(
#[doc(hidden)]
#[allow(non_snake_case, reason = "we keep original structure name which is probably CamelCase")]
mod #module_name {
use super::*;

Expand Down

0 comments on commit 7f6e619

Please sign in to comment.