Skip to content

Commit

Permalink
Merge pull request #53 from aDotInTheVoid/patch-1
Browse files Browse the repository at this point in the history
implement `Clone` for `Rule`
  • Loading branch information
Veykril authored Oct 27, 2024
2 parents 73678ce + 5289a56 commit 53bc777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct TokenData {
}

/// A production rule.
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Clone, Eq, PartialEq)]
pub enum Rule {
/// A labeled rule, like `a:B` (`"a"` is the label, `B` is the rule).
Labeled {
Expand Down

0 comments on commit 53bc777

Please sign in to comment.