remove clone from extend_simple
This commit is contained in:
parent
d79488b00f
commit
95c8b8d123
@ -542,12 +542,15 @@ impl Extender {
|
|||||||
media_query_context: &Option<Vec<CssMediaQuery>>,
|
media_query_context: &Option<Vec<CssMediaQuery>>,
|
||||||
targets_used: &mut HashSet<SimpleSelector>,
|
targets_used: &mut HashSet<SimpleSelector>,
|
||||||
) -> Option<Vec<Vec<Extension>>> {
|
) -> Option<Vec<Vec<Extension>>> {
|
||||||
if let SimpleSelector::Pseudo(
|
if let SimpleSelector::Pseudo(Pseudo {
|
||||||
simple @ Pseudo {
|
selector: Some(..), ..
|
||||||
selector: Some(..), ..
|
}) = &simple
|
||||||
},
|
|
||||||
) = simple.clone()
|
|
||||||
{
|
{
|
||||||
|
let simple = if let SimpleSelector::Pseudo(pseudo) = simple.clone() {
|
||||||
|
pseudo
|
||||||
|
} else {
|
||||||
|
unreachable!()
|
||||||
|
};
|
||||||
if let Some(extended) = self.extend_pseudo(simple, extensions, media_query_context) {
|
if let Some(extended) = self.extend_pseudo(simple, extensions, media_query_context) {
|
||||||
return Some(
|
return Some(
|
||||||
extended
|
extended
|
||||||
|
Loading…
x
Reference in New Issue
Block a user