From 4244948c6b1a62bd0e1ef276d1f0cc22c36f6f66 Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Sat, 27 Jan 2018 21:36:28 -0500 Subject: Convert SyntaxKind to an enum --- src/parser/event_parser/grammar/mod.rs | 1 - src/parser/event_parser/parser.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/parser/event_parser') diff --git a/src/parser/event_parser/grammar/mod.rs b/src/parser/event_parser/grammar/mod.rs index c6ab1fbe2..82f8b7f3e 100644 --- a/src/parser/event_parser/grammar/mod.rs +++ b/src/parser/event_parser/grammar/mod.rs @@ -1,6 +1,5 @@ use super::parser::{Parser, TokenSet}; use SyntaxKind; -use tree::EOF; use syntax_kinds::*; mod items; diff --git a/src/parser/event_parser/parser.rs b/src/parser/event_parser/parser.rs index 5ba3071cb..573e3d73a 100644 --- a/src/parser/event_parser/parser.rs +++ b/src/parser/event_parser/parser.rs @@ -1,8 +1,7 @@ use {SyntaxKind, TextUnit, Token}; use super::Event; use super::super::is_insignificant; -use syntax_kinds::{ERROR, L_CURLY, R_CURLY}; -use tree::{EOF, TOMBSTONE}; +use SyntaxKind::{EOF, ERROR, L_CURLY, R_CURLY, TOMBSTONE}; pub(crate) struct Marker { pos: u32, -- cgit v1.2.3