Skip to content

Commit 38f8b95

Browse files
author
Nathaniel Ringo
committed
Derives Clone and PartialEq on regex::Error.
1 parent 6d07ffe commit 38f8b95

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)