From 845793a7ad102cb72940f9fde1840dac79b670d1 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 21 Jul 2024 21:36:08 +0900 Subject: [PATCH] str_util: remove Eq + PartialEq from StringPattern I'm going to add regex support, and compiled Regex object isn't comparable. --- lib/src/str_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/str_util.rs b/lib/src/str_util.rs index 75b7f822d..f1fdec2a4 100644 --- a/lib/src/str_util.rs +++ b/lib/src/str_util.rs @@ -38,7 +38,7 @@ fn parse_glob(src: &str) -> Result { /// 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),