Skip to content

Commit 1b95082

Browse files
committed
fix!: Make AnnotationKind non-exhaustive
This will allow adding more cases in the future.
1 parent 8280ae0 commit 1b95082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/snippet.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ impl<'a> Annotation<'a> {
259259

260260
/// The category of the [`Annotation`]
261261
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord)]
262+
#[non_exhaustive]
262263
pub enum AnnotationKind {
263264
/// Color to the [`Level`] the first [`Title`] in [`Group`]. If no [`Title`]
264265
/// is present, it will default to `error`.

0 commit comments

Comments
 (0)