From 1b950821f4ed792578490f1cd0e9cb8b3780c140 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 30 Jun 2025 10:27:22 -0500 Subject: [PATCH] fix!: Make AnnotationKind non-exhaustive This will allow adding more cases in the future. --- src/snippet.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/snippet.rs b/src/snippet.rs index 6e9a78c7..2cbf3d7c 100644 --- a/src/snippet.rs +++ b/src/snippet.rs @@ -259,6 +259,7 @@ impl<'a> Annotation<'a> { /// The category of the [`Annotation`] #[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)] +#[non_exhaustive] pub enum AnnotationKind { /// Color to the [`Level`] the first [`Title`] in [`Group`]. If no [`Title`] /// is present, it will default to `error`.