Skip to content

Commit

Permalink
Merge pull request #40 from Roughsketch/feature/non-exhaustive
Browse files Browse the repository at this point in the history
Mark ImageType as non-exhaustive
  • Loading branch information
Roughsketch authored Jun 17, 2024
2 parents 2280315 + c5f58ea commit 4428f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl From<std::io::Error> for ImageError {
pub type ImageResult<T> = Result<T, ImageError>;

/// Types of image formats that this crate can identify.
#[non_exhaustive]
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum ImageType {
/// Animated sprite image format
Expand Down

0 comments on commit 4428f98

Please sign in to comment.