mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-08 17:02:51 +00:00
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:
parent
5783631271
commit
845793a7ad
@ -38,7 +38,7 @@ fn parse_glob(src: &str) -> Result<glob::Pattern, StringPatternParseError> {
|
|||||||
|
|
||||||
/// Pattern to be tested against string property like commit description or
|
/// Pattern to be tested against string property like commit description or
|
||||||
/// branch name.
|
/// branch name.
|
||||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum StringPattern {
|
pub enum StringPattern {
|
||||||
/// Matches strings exactly.
|
/// Matches strings exactly.
|
||||||
Exact(String),
|
Exact(String),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user