From b729d7b2573ff3f37888a0101c1fabea245f64f1 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Tue, 7 Jul 2020 19:37:48 -0400 Subject: [PATCH] move `Comment` enum to `common` --- src/parse/common.rs | 5 +++++ src/parse/mod.rs | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/parse/common.rs b/src/parse/common.rs index 5ebc75d..367f50e 100644 --- a/src/parse/common.rs +++ b/src/parse/common.rs @@ -113,3 +113,8 @@ impl BitOr for ContextFlags { Self(self.0 | rhs.0) } } + +pub(crate) enum Comment { + Silent, + Loud(String), +} diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 9ae2305..df4ca75 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -26,7 +26,7 @@ use crate::{ {Cow, Token}, }; -use common::{ContextFlags, NeverEmptyVec, SelectorOrStyle}; +use common::{Comment, ContextFlags, NeverEmptyVec, SelectorOrStyle}; pub(crate) use value::{HigherIntermediateValue, ValueVisitor}; @@ -43,11 +43,6 @@ mod throw_away; mod value; mod variable; -pub(crate) enum Comment { - Silent, - Loud(String), -} - #[derive(Debug, Clone)] pub(crate) enum Stmt { RuleSet {