fix: remove redundant imports

This commit is contained in:
Amaan Qureshi 2024-02-19 05:57:21 -05:00
parent f526be8061
commit d95fcc83b9
5 changed files with 2 additions and 7 deletions

View file

@ -309,7 +309,6 @@ impl SymbolReplacer {
#[cfg(test)]
mod test {
use super::*;
use crate::generate::grammars::VariableType;
#[test]
fn test_extraction() {

View file

@ -220,7 +220,6 @@ unless they are used only as the grammar's start rule.
mod tests {
use super::*;
use crate::generate::grammars::VariableType;
use crate::generate::rules::Symbol;
#[test]
fn test_flatten_grammar() {

View file

@ -161,7 +161,7 @@ fn validate_precedences(grammar: &InputGrammar) -> Result<()> {
#[cfg(test)]
mod tests {
use super::*;
use crate::generate::grammars::{InputGrammar, Variable, VariableType};
use crate::generate::grammars::VariableType;
#[test]
fn test_validate_precedences_with_undeclared_precedence() {

View file

@ -223,9 +223,7 @@ pub(super) fn process_inlines(
#[cfg(test)]
mod tests {
use super::*;
use crate::generate::grammars::{
LexicalVariable, ProductionStep, SyntaxVariable, VariableType,
};
use crate::generate::grammars::{LexicalVariable, SyntaxVariable, VariableType};
use crate::generate::rules::{Associativity, Precedence, Symbol};
#[test]

View file

@ -1,6 +1,5 @@
use super::grammars::VariableType;
use smallbitvec::SmallBitVec;
use std::iter::FromIterator;
use std::{collections::HashMap, fmt};
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]