Skip to content

Commit

Permalink
Make matching enums hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrenierejm committed Sep 3, 2024
1 parent 4a4c092 commit ebd32ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::iter::Iterator;
use std::sync::Arc;

// match only based on file path
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub enum FastFileMatcher {
// MimeType(Regex),
/**
Expand All @@ -24,7 +24,7 @@ pub enum FastFileMatcher {
// todo: maybe allow matching a directory (e.g. /var/lib/postgres)
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub enum FileMatcher {
/// any type of fast matcher
Fast(FastFileMatcher),
Expand Down

0 comments on commit ebd32ab

Please sign in to comment.