Skip to content

Commit 23aa434

Browse files
committed
Auto merge of #380 - remexre:impls-for-error, r=BurntSushi
Derives Clone and PartialEq on regex::Error. Resolves #379.
2 parents 8ffd85d + 38f8b95 commit 23aa434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::fmt;
1313
use syntax;
1414

1515
/// An error that occurred during parsing or compiling a regular expression.
16-
#[derive(Debug)]
16+
#[derive(Clone, Debug, PartialEq)]
1717
pub enum Error {
1818
/// A syntax error.
1919
Syntax(String),

0 commit comments

Comments
 (0)