From 46552b3a567e8b0a68bdbc9d0cd290b7e08b0800 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 20 Apr 2020 14:53:52 -0400 Subject: [PATCH] remove usage of `use super::*`` --- src/utils/comment_whitespace.rs | 2 +- src/utils/read_until.rs | 2 +- src/utils/strings.rs | 2 +- src/utils/variables.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/comment_whitespace.rs b/src/utils/comment_whitespace.rs index b21f0d1..0772020 100644 --- a/src/utils/comment_whitespace.rs +++ b/src/utils/comment_whitespace.rs @@ -8,7 +8,7 @@ use crate::error::SassResult; use crate::selector::Selector; use crate::{Scope, Token}; -use super::*; +use super::parse_interpolation; pub(crate) trait IsWhitespace { fn is_whitespace(&self) -> bool; diff --git a/src/utils/read_until.rs b/src/utils/read_until.rs index ef165ca..e0a4d4b 100644 --- a/src/utils/read_until.rs +++ b/src/utils/read_until.rs @@ -4,7 +4,7 @@ use peekmore::PeekMoreIterator; use crate::Token; -use super::*; +use super::{devour_whitespace, read_until_newline}; // Eat tokens until an open curly brace // diff --git a/src/utils/strings.rs b/src/utils/strings.rs index d698190..7f0028c 100644 --- a/src/utils/strings.rs +++ b/src/utils/strings.rs @@ -10,7 +10,7 @@ use crate::selector::Selector; use crate::value::Value; use crate::{Scope, Token}; -use super::*; +use super::{as_hex, hex_char_for, is_name, is_name_start, parse_interpolation}; fn ident_body>( toks: &mut PeekMoreIterator, diff --git a/src/utils/variables.rs b/src/utils/variables.rs index d5020dc..7c6db2c 100644 --- a/src/utils/variables.rs +++ b/src/utils/variables.rs @@ -9,7 +9,7 @@ use crate::selector::Selector; use crate::value::Value; use crate::{Scope, Token}; -use super::*; +use super::{devour_whitespace, eat_ident, read_until_semicolon_or_closing_curly_brace}; pub(crate) struct VariableDecl { pub val: Spanned,