Skip to content

Commit

Permalink
Add _Nonexhaustive member to Flush enums
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed May 8, 2017
1 parent e6da230 commit 50a34d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ pub enum FlushCompress {
///
/// The return value may indicate that the stream is not yet done and more
/// data has yet to be processed.
Finish = ffi::MZ_FINISH as isize
Finish = ffi::MZ_FINISH as isize,

#[doc(hidden)]
_Nonexhaustive
}

#[derive(Copy, Clone, PartialEq, Eq, Debug)]
Expand All @@ -135,7 +138,10 @@ pub enum FlushDecompress {
///
/// The return value may indicate that the stream is not yet done and more
/// data has yet to be processed.
Finish = ffi::MZ_FINISH as isize
Finish = ffi::MZ_FINISH as isize,

#[doc(hidden)]
_Nonexhaustive
}

impl Flush for FlushCompress {
Expand Down

0 comments on commit 50a34d6

Please sign in to comment.