Merge pull request #4858 from hds/v3-no-deny-correctness

fix: Remove strict linting from generated code
This commit is contained in:
Ed Page 2023-04-25 11:47:35 -05:00 committed by GitHub
commit b95af6419a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 7 deletions

View file

@ -85,7 +85,6 @@ pub fn gen_for_struct(
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl #impl_generics clap::Args for #struct_name #ty_generics #where_clause { impl #impl_generics clap::Args for #struct_name #ty_generics #where_clause {
fn augment_args<'b>(#app_var: clap::Command<'b>) -> clap::Command<'b> { fn augment_args<'b>(#app_var: clap::Command<'b>) -> clap::Command<'b> {
#augmentation #augmentation
@ -130,7 +129,6 @@ pub fn gen_from_arg_matches_for_struct(
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl #impl_generics clap::FromArgMatches for #struct_name #ty_generics #where_clause { impl #impl_generics clap::FromArgMatches for #struct_name #ty_generics #where_clause {
fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> {
Self::from_arg_matches_mut(&mut __clap_arg_matches.clone()) Self::from_arg_matches_mut(&mut __clap_arg_matches.clone())

View file

@ -55,7 +55,6 @@ pub fn gen_for_struct(
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
#[allow(deprecated)] #[allow(deprecated)]
impl #impl_generics clap::CommandFactory for #struct_name #ty_generics #where_clause { impl #impl_generics clap::CommandFactory for #struct_name #ty_generics #where_clause {
fn into_app<'b>() -> clap::Command<'b> { fn into_app<'b>() -> clap::Command<'b> {
@ -101,7 +100,6 @@ pub fn gen_for_enum(enum_name: &Ident, generics: &Generics, attrs: &[Attribute])
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl #impl_generics clap::CommandFactory for #enum_name #ty_generics #where_clause { impl #impl_generics clap::CommandFactory for #enum_name #ty_generics #where_clause {
fn into_app<'b>() -> clap::Command<'b> { fn into_app<'b>() -> clap::Command<'b> {
#[allow(deprecated)] #[allow(deprecated)]

View file

@ -73,7 +73,6 @@ pub fn gen_for_enum(
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl #impl_generics clap::Subcommand for #enum_name #ty_generics #where_clause { impl #impl_generics clap::Subcommand for #enum_name #ty_generics #where_clause {
fn augment_subcommands <'b>(__clap_app: clap::Command<'b>) -> clap::Command<'b> { fn augment_subcommands <'b>(__clap_app: clap::Command<'b>) -> clap::Command<'b> {
#augmentation #augmentation
@ -120,7 +119,6 @@ fn gen_from_arg_matches_for_enum(
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl #impl_generics clap::FromArgMatches for #name #ty_generics #where_clause { impl #impl_generics clap::FromArgMatches for #name #ty_generics #where_clause {
fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> {
Self::from_arg_matches_mut(&mut __clap_arg_matches.clone()) Self::from_arg_matches_mut(&mut __clap_arg_matches.clone())

View file

@ -60,7 +60,6 @@ pub fn gen_for_enum(name: &Ident, attrs: &[Attribute], e: &DataEnum) -> TokenStr
clippy::cargo, clippy::cargo,
clippy::suspicious_else_formatting, clippy::suspicious_else_formatting,
)] )]
#[deny(clippy::correctness)]
impl clap::ValueEnum for #name { impl clap::ValueEnum for #name {
#value_variants #value_variants
#to_possible_value #to_possible_value