Skip to content

Commit c5d0a23

Browse files
committed
make FileFormat and Kind non exhaustive
1 parent 1cc999e commit c5d0a23

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ impl From<&[u8]> for FileFormat {
330330

331331
/// A kind of file format.
332332
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
333+
#[non_exhaustive]
333334
pub enum Kind {
334335
/// Files and directories stored in a single, possibly compressed, archive.
335336
Archive,

src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ macro_rules! formats {
2323
} => {
2424
/// A file format.
2525
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
26+
#[non_exhaustive]
2627
pub enum FileFormat {
2728
$(
2829
#[doc=concat!($name, $(" (", $short_name, ")",)? ".")]

0 commit comments

Comments
 (0)