allow clippy::single_match

This commit is contained in:
ConnorSkees 2020-06-24 07:05:14 -04:00
parent e96fc409e9
commit e5e3943e5c
2 changed files with 17 additions and 15 deletions

View File

@ -58,6 +58,7 @@ grass input.scss
renamed_and_removed_lints, renamed_and_removed_lints,
clippy::unknown_clippy_lints, clippy::unknown_clippy_lints,
clippy::replace_consts, clippy::replace_consts,
clippy::single_match,
// temporarily allowed while under heavy development. // temporarily allowed while under heavy development.
// eventually these allows should be refactored away // eventually these allows should be refactored away

View File

@ -376,12 +376,13 @@ impl Extender {
for i in 0..compound.components.len() { for i in 0..compound.components.len() {
let simple = compound.components.get(i).cloned().unwrap(); let simple = compound.components.get(i).cloned().unwrap();
if let Some(extended) = self.extend_simple( match self.extend_simple(
simple.clone(), simple.clone(),
extensions, extensions,
media_query_context, media_query_context,
&mut targets_used, &mut targets_used,
) { ) {
Some(extended) => {
if options.is_none() { if options.is_none() {
let mut new_options = Vec::new(); let mut new_options = Vec::new();
if i != 0 { if i != 0 {
@ -396,11 +397,11 @@ impl Extender {
Some(v) => v.extend(extended.into_iter()), Some(v) => v.extend(extended.into_iter()),
None => unreachable!(), None => unreachable!(),
} }
} else { }
match options.as_mut() { None => match options.as_mut() {
Some(v) => v.push(vec![self.extension_for_simple(simple)]), Some(v) => v.push(vec![self.extension_for_simple(simple)]),
None => {} None => {}
} },
} }
} }