diff --git a/src/error.rs b/src/error.rs index c95d67acdd..869107bdfa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -13,7 +13,7 @@ use std::fmt; use syntax; /// An error that occurred during parsing or compiling a regular expression. -#[derive(Debug)] +#[derive(Clone, Debug, PartialEq)] pub enum Error { /// A syntax error. Syntax(String),