Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Sep 7, 2022
1 parent aa13001 commit 4fd0b02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/rules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ use crate::error::{MinifyError, ParserError, PrinterError};
use crate::parser::TopLevelRuleParser;
use crate::prefixes::Feature;
use crate::printer::Printer;
use crate::rules::keyframes::KeyframesName;
use crate::selector::{downlevel_selectors, get_prefix, is_equivalent};
use crate::stylesheet::ParserOptions;
use crate::targets::Browsers;
Expand All @@ -85,7 +86,6 @@ use nesting::NestingRule;
use page::PageRule;
use serde::Serialize;
use std::collections::{HashMap, HashSet};
use std::default::Default;
use style::StyleRule;
use supports::SupportsRule;
use unknown::UnknownAtRule;
Expand Down Expand Up @@ -260,10 +260,10 @@ impl<'i> CssRuleList<'i> {
for mut rule in self.0.drain(..) {
match &mut rule {
CssRule::Keyframes(keyframes) => {
if context
.unused_symbols
.contains(&keyframes.name.to_css_string(Default::default()).unwrap())
{
if context.unused_symbols.contains(match &keyframes.name {
KeyframesName::Ident(ident) => ident.0.as_ref(),
KeyframesName::Custom(string) => string.as_ref(),
}) {
continue;
}
keyframes.minify(context);
Expand Down

0 comments on commit 4fd0b02

Please sign in to comment.