Skip to content

Commit

Permalink
Add comment about non_exhaustive attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker authored and djc committed Apr 18, 2023
1 parent 42943b7 commit 84bbea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ pub enum ParseErrorKind {
/// There was an error on the formatting string, or there were non-supported formating items.
BadFormat,

// TODO: Change this to `#[non_exhaustive]` (on the enum) when MSRV is increased
// TODO: Change this to `#[non_exhaustive]` (on the enum) with the next breaking release.
#[doc(hidden)]
__Nonexhaustive,
}
Expand Down
1 change: 1 addition & 0 deletions src/format/parsed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub struct Parsed {
pub offset: Option<i32>,

/// A dummy field to make this type not fully destructible (required for API stability).
// TODO: Change this to `#[non_exhaustive]` (on the enum) with the next breaking release.
_dummy: (),
}

Expand Down

0 comments on commit 84bbea5

Please sign in to comment.