From 84bbea51313b0c705fcf0ba82196234fe940050f Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Tue, 18 Apr 2023 15:01:27 +0200 Subject: [PATCH] Add comment about non_exhaustive attributes --- src/format/mod.rs | 2 +- src/format/parsed.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index 5685860c7b..768ed76815 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -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, } diff --git a/src/format/parsed.rs b/src/format/parsed.rs index 27bc0cdb41..1ed5dcbf1d 100644 --- a/src/format/parsed.rs +++ b/src/format/parsed.rs @@ -106,6 +106,7 @@ pub struct Parsed { pub offset: Option, /// 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: (), }