fix: remove redundant imports
This commit is contained in:
parent
f526be8061
commit
d95fcc83b9
5 changed files with 2 additions and 7 deletions
|
|
@ -309,7 +309,6 @@ impl SymbolReplacer {
|
|||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::generate::grammars::VariableType;
|
||||
|
||||
#[test]
|
||||
fn test_extraction() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue