allow clippy::single_match
This commit is contained in:
parent
e96fc409e9
commit
e5e3943e5c
@ -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
|
||||||
|
@ -376,31 +376,32 @@ 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,
|
||||||
) {
|
) {
|
||||||
if options.is_none() {
|
Some(extended) => {
|
||||||
let mut new_options = Vec::new();
|
if options.is_none() {
|
||||||
if i != 0 {
|
let mut new_options = Vec::new();
|
||||||
new_options.push(vec![self.extension_for_compound(
|
if i != 0 {
|
||||||
compound.components.clone().into_iter().take(i).collect(),
|
new_options.push(vec![self.extension_for_compound(
|
||||||
)]);
|
compound.components.clone().into_iter().take(i).collect(),
|
||||||
|
)]);
|
||||||
|
}
|
||||||
|
options.replace(new_options);
|
||||||
}
|
}
|
||||||
options.replace(new_options);
|
|
||||||
}
|
|
||||||
|
|
||||||
match options.as_mut() {
|
match options.as_mut() {
|
||||||
Some(v) => v.extend(extended.into_iter()),
|
Some(v) => v.extend(extended.into_iter()),
|
||||||
None => unreachable!(),
|
None => unreachable!(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
None => match options.as_mut() {
|
||||||
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 => {}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user