Skip to content

Commit 53bc777

Browse files
authored
Merge pull request #53 from aDotInTheVoid/patch-1
implement `Clone` for `Rule`
2 parents 73678ce + 5289a56 commit 53bc777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub struct TokenData {
101101
}
102102

103103
/// A production rule.
104-
#[derive(Debug, Eq, PartialEq)]
104+
#[derive(Debug, Clone, Eq, PartialEq)]
105105
pub enum Rule {
106106
/// A labeled rule, like `a:B` (`"a"` is the label, `B` is the rule).
107107
Labeled {

0 commit comments

Comments
 (0)