Skip to content

Commit b234287

Browse files
authored
Add #[non_exhaustive] to the huge enums. (#26)
Don't want to force an error or major version bump each time.
1 parent aad9762 commit b234287

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/any.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ macro_rules! any {
88
/// Any of the supported atoms.
99
#[derive(Clone, PartialEq)]
1010
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
11+
#[non_exhaustive]
1112
pub enum Any {
1213
$($kind($kind),)*
1314
Unknown(FourCC, Vec<u8>),

src/moov/trak/mdia/minf/stbl/stsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct Stsd {
2626
/// Called a "sample entry" in the ISOBMFF specification.
2727
#[derive(Debug, Clone, PartialEq, Eq, From)]
2828
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
29+
#[non_exhaustive]
2930
pub enum Codec {
3031
// H264
3132
Avc1(Avc1),

0 commit comments

Comments
 (0)