str_util: remove Eq + PartialEq from StringPattern

I'm going to add regex support, and compiled Regex object isn't comparable.
This commit is contained in:
Yuya Nishihara 2024-07-21 21:36:08 +09:00
parent 5783631271
commit 845793a7ad

View File

@ -38,7 +38,7 @@ fn parse_glob(src: &str) -> Result<glob::Pattern, StringPatternParseError> {
/// Pattern to be tested against string property like commit description or
/// branch name.
#[derive(Clone, Debug, Eq, PartialEq)]
#[derive(Clone, Debug)]
pub enum StringPattern {
/// Matches strings exactly.
Exact(String),