Skip to content

Commit

Permalink
Add allow(non_snake_case_name) to generated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowneee committed Jul 24, 2024
1 parent f90ccde commit ad54845
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions okapi-operation-macro/src/operation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ fn build_openapi_generator_fn(
let parameters = &attrs.parameters;
let responses = &attrs.responses;
quote! {
#[allow(non_snake_case_functions)]
#vis fn #name(
components: &mut Components
) -> std::result::Result<okapi::openapi3::Operation, anyhow::Error> {
Expand Down

0 comments on commit ad54845

Please sign in to comment.