remove superfluous lifetimes and returns

This commit is contained in:
ConnorSkees 2020-06-22 12:41:59 -04:00
parent a3a33db47a
commit eb6f0f3451
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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>>>()?;