Unnamed repository; edit this file 'description' to name the repository.
Reorder
Ariel Davis 2021-01-22
parent 1f3d4b0 · commit 43c5100
-rw-r--r--lib/ungrammar/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ungrammar/src/lib.rs b/lib/ungrammar/src/lib.rs
index 7d7c14f535..eb1feaa340 100644
--- a/lib/ungrammar/src/lib.rs
+++ b/lib/ungrammar/src/lib.rs
@@ -26,11 +26,11 @@ pub fn rust_grammar() -> Grammar {
}
/// A node, like `A = 'b' | 'c'`.
-#[derive(Eq, PartialEq, Debug, Copy, Clone, Hash, PartialOrd, Ord)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Node(usize);
/// A token, denoted with single quotes, like `'+'` or `'struct'`.
-#[derive(Eq, PartialEq, Debug, Copy, Clone, Hash, PartialOrd, Ord)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Token(usize);
/// An Ungrammar grammar.