|
3 | 3 | use std::{borrow::Cow, ops::Deref, str::FromStr}; |
4 | 4 |
|
5 | 5 | use nom::{ |
| 6 | + AsChar, IResult, Parser, |
6 | 7 | branch::alt, |
7 | 8 | bytes::complete::{tag, take_until}, |
8 | 9 | character::complete::{self, digit0, digit1}, |
9 | 10 | combinator::{fail, map, opt, recognize}, |
10 | 11 | error::ErrorKind, |
11 | 12 | multi::{many0, many1, separated_list0}, |
12 | | - AsChar, IResult, Parser, |
13 | 13 | }; |
14 | 14 |
|
15 | 15 | #[derive(Debug, PartialEq)] |
@@ -175,7 +175,7 @@ pub(crate) struct Declaration { |
175 | 175 |
|
176 | 176 | use crate::css::styles_from_properties; |
177 | 177 |
|
178 | | -use super::{types::Importance, PseudoElement, Selector, SelectorComponent, StyleDecl, WhiteSpace}; |
| 178 | +use super::{PseudoElement, Selector, SelectorComponent, StyleDecl, WhiteSpace, types::Importance}; |
179 | 179 |
|
180 | 180 | #[derive(Debug, PartialEq)] |
181 | 181 | pub(crate) struct RuleSet { |
@@ -1161,8 +1161,8 @@ pub(crate) fn parse_style_attribute(text: &str) -> crate::Result<Vec<StyleDecl>> |
1161 | 1161 | #[cfg(test)] |
1162 | 1162 | mod test { |
1163 | 1163 | use crate::css::{ |
1164 | | - parser::{Height, Importance, LengthUnit, RuleSet, Selector}, |
1165 | 1164 | AttrOperator, PseudoElement, SelectorComponent, |
| 1165 | + parser::{Height, Importance, LengthUnit, RuleSet, Selector}, |
1166 | 1166 | }; |
1167 | 1167 |
|
1168 | 1168 | use super::{Colour, Decl, Declaration, Overflow, PropertyName}; |
|
0 commit comments