Skip to content

Commit

Permalink
Make FileFormat hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixEngl authored Aug 27, 2024
1 parent 225877e commit 9104d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro_rules! formats {
)*
} => {
/// A file format.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "extended-enums", derive(strum::EnumIter, strum::AsRefStr, strum::FromRepr))]
pub enum FileFormat {
Expand Down

0 comments on commit 9104d4a

Please sign in to comment.