Skip to content

Commit

Permalink
implement Clone for Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid committed Jun 29, 2023
1 parent 8a85cde commit 5289a56
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 5289a56

Please sign in to comment.