Skip to content

Commit

Permalink
fixed a typo in NoneExhaustiveFieldlessUnit (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Oct 7, 2024
1 parent 5aefde4 commit e29056d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test_crates/struct_becomes_enum/new/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl NonExhaustiveEmptyStructToEnum {
// The following structs are also not externally-constructible due to `#[non_exhaustive]`.

#[non_exhaustive]
pub enum NoneExhaustiveFieldlessUnit {
pub enum NonExhaustiveFieldlessUnit {
Var,
}

Expand Down
2 changes: 1 addition & 1 deletion test_crates/struct_becomes_enum/old/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl NonExhaustiveEmptyStructToEnum {
// The following structs are also not externally-constructible due to `#[non_exhaustive]`.

#[non_exhaustive]
pub struct NoneExhaustiveFieldlessUnit;
pub struct NonExhaustiveFieldlessUnit;

#[non_exhaustive]
pub struct NonExhaustiveFieldlessTuple();

0 comments on commit e29056d

Please sign in to comment.