clippy
This commit is contained in:
parent
2a01668ae0
commit
2efab1cebe
@ -33,7 +33,6 @@ struct SelectorPart {
|
||||
|
||||
impl Display for SelectorPart {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
dbg!(&self);
|
||||
let mut iter = self.inner.iter().peekable();
|
||||
devour_whitespace(&mut iter);
|
||||
while let Some(s) = iter.next() {
|
||||
@ -205,13 +204,12 @@ impl Selector {
|
||||
while let Some(c) = string.pop() {
|
||||
if c == ' ' || c == ',' {
|
||||
continue;
|
||||
} else {
|
||||
}
|
||||
string.push(c);
|
||||
string.push(',');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
'/' => {
|
||||
if toks.peek().is_none() {
|
||||
return Err("Expected selector.".into());
|
||||
@ -233,12 +231,11 @@ impl Selector {
|
||||
while let Some(c) = string.pop() {
|
||||
if c == ' ' || c == ',' || c == '\t' {
|
||||
continue;
|
||||
} else {
|
||||
}
|
||||
string.push(c);
|
||||
string.push(',');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
let mut inner = Vec::new();
|
||||
let mut is_invisible = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user