Skip to content

Commit 3fb6d22

Browse files
aDotInTheVoidlnicola
authored andcommitted
implement Clone for Rule
1 parent 4ce41f2 commit 3fb6d22

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/lib/ungrammar/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/lib/ungrammar/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)