From 61ec81f47cf21d9fe2db7c89d783a794555141f0 Mon Sep 17 00:00:00 2001 From: RDambrosio016 Date: Sun, 19 Jul 2020 18:03:59 -0400 Subject: [PATCH] Fix: docs fix and remove useless imports in util --- rslint/src/rules/mod.rs | 2 +- rslint/src/tablegen.rs | 2 +- rslint/src/util.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rslint/src/rules/mod.rs b/rslint/src/rules/mod.rs index 2d61d4be..cba19357 100644 --- a/rslint/src/rules/mod.rs +++ b/rslint/src/rules/mod.rs @@ -24,7 +24,7 @@ impl CstRuleGroup { } } -/// A macro for easily creating rules, consisting of the name of the rule as a string, and its struct name +/// A macro for easily creating rules, consisting of the name of the rule as a string, and its struct name /// After using this you must import the Visit trait and implement it for the struct #[macro_export] macro_rules! cst_rule { diff --git a/rslint/src/tablegen.rs b/rslint/src/tablegen.rs index 2dc39e6b..1828a201 100644 --- a/rslint/src/tablegen.rs +++ b/rslint/src/tablegen.rs @@ -37,7 +37,7 @@ impl<'a> Cell<'a> { } } -/// A simple but limited unicode table renderer for rendering tables in the terminal +/// A simple but limited unicode table renderer for rendering tables in the terminal /// The first cell of a row is used as the heading, any extra row elements will be thrown out, /// any missing row elements will be rendered as empty pub struct Table<'a> { diff --git a/rslint/src/util.rs b/rslint/src/util.rs index e1f50685..8e1b9e46 100644 --- a/rslint/src/util.rs +++ b/rslint/src/util.rs @@ -1,5 +1,5 @@ use rslint_parse::lexer::token::*; -use rslint_parse::parser::cst::{declaration::*, expr::*, stmt::*}; +use rslint_parse::parser::cst::expr::*; /// Try to coerce a simple constant expression to a bool, this includes literals and logical expressions /// with simple const left and right values, this is used for more helpful errors about the impact of const conditions