Skip to content

Commit 0d54d72

Browse files
committed
EBML: Make TagName enum non-exhaustive
1 parent 76a6e6a commit 0d54d72

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lofty/src/ebml/tag/tag_name.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::borrow::Cow;
99
/// descriptions and expected data types of each tag.
1010
#[rustfmt::skip]
1111
#[allow(missing_docs)]
12+
#[non_exhaustive]
1213
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
1314
pub enum TagName {
1415

@@ -248,4 +249,4 @@ impl From<TagName> for Cow<'static, str> {
248249
TagName::TermsOfUse => Cow::Borrowed("TERMS_OF_USE"),
249250
}
250251
}
251-
}
252+
}

scripts/update-matroska-tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
/// descriptions and expected data types of each tag.
1515
#[rustfmt::skip]
1616
#[allow(missing_docs)]
17+
#[non_exhaustive]
1718
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
1819
pub enum TagName {
1920
"""

0 commit comments

Comments
 (0)