From a9df7a13392d2dffdde658f961fc391939b02a88 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 21 Jul 2024 21:05:57 +0900 Subject: [PATCH] fileset: remove Eq + PartialEq from FilesetExpression/Pattern For the same reason as the revset change 9613ec4f. If we add more complex pattern or expression, Eq might not be implementable. --- lib/src/fileset.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/fileset.rs b/lib/src/fileset.rs index a7624a92c..ce6fd2220 100644 --- a/lib/src/fileset.rs +++ b/lib/src/fileset.rs @@ -67,7 +67,7 @@ pub enum FilePatternParseError { } /// Basic pattern to match `RepoPath`. -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Clone, Debug)] pub enum FilePattern { /// Matches file (or exact) path. FilePath(RepoPathBuf), @@ -198,7 +198,7 @@ fn split_glob_path(input: &str) -> (&str, &str) { } /// AST-level representation of the fileset expression. -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Clone, Debug)] pub enum FilesetExpression { /// Matches nothing. None,