remove superfluous lifetimes and returns
This commit is contained in:
parent
a3a33db47a
commit
eb6f0f3451
@ -18,7 +18,7 @@ use super::{NeverEmptyVec, Parser, Stmt};
|
|||||||
const FORBIDDEN_IDENTIFIERS: [&str; 7] =
|
const FORBIDDEN_IDENTIFIERS: [&str; 7] =
|
||||||
["calc", "element", "expression", "url", "and", "or", "not"];
|
["calc", "element", "expression", "url", "and", "or", "not"];
|
||||||
|
|
||||||
fn unvendor<'a>(name: &'a str) -> &'a str {
|
fn unvendor(name: &str) -> &str {
|
||||||
let mut chars = name.chars();
|
let mut chars = name.chars();
|
||||||
if !matches!(chars.next(), Some('-')) {
|
if !matches!(chars.next(), Some('-')) {
|
||||||
return name;
|
return name;
|
||||||
|
@ -166,7 +166,7 @@ impl Extender {
|
|||||||
if complex.components.len() == 1 {
|
if complex.components.len() == 1 {
|
||||||
Ok(complex.components.first().unwrap().as_compound().clone())
|
Ok(complex.components.first().unwrap().as_compound().clone())
|
||||||
} else {
|
} else {
|
||||||
return Err(("Can't extend complex selector $complex.", span).into());
|
Err(("Can't extend complex selector $complex.", span).into())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect::<SassResult<Vec<CompoundSelector>>>()?;
|
.collect::<SassResult<Vec<CompoundSelector>>>()?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user