Skip to content

Commit

Permalink
Add #[allow(clippy::exhaustive_enums)] to generated empty enums use…
Browse files Browse the repository at this point in the history
…d for error "reporting" (see issue #112)
  • Loading branch information
idanarye committed Sep 18, 2023
1 parent 07eb256 commit d59beda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Add `#[allow(clippy::exhaustive_enums)]` to generated empty enums used for
error "reporting" (see issue #112)

## 0.16.0 - 2023-08-26
### Added
Expand Down
2 changes: 2 additions & 0 deletions typed-builder-macro/src/struct_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ impl<'a> StructInfo<'a> {
}
#[doc(hidden)]
#[allow(dead_code, non_camel_case_types, non_snake_case)]
#[allow(clippy::exhaustive_enums)]
pub enum #repeated_fields_error_type_name {}
#[doc(hidden)]
#[allow(dead_code, non_camel_case_types, missing_docs)]
Expand Down Expand Up @@ -368,6 +369,7 @@ impl<'a> StructInfo<'a> {
quote! {
#[doc(hidden)]
#[allow(dead_code, non_camel_case_types, non_snake_case)]
#[allow(clippy::exhaustive_enums)]
pub enum #early_build_error_type_name {}
#[doc(hidden)]
#[allow(dead_code, non_camel_case_types, missing_docs, clippy::panic)]
Expand Down

0 comments on commit d59beda

Please sign in to comment.