diff --git a/Cargo.lock b/Cargo.lock index bbb90d90..1d0067b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -826,7 +826,7 @@ checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64" [[package]] name = "parcel_css" -version = "1.0.0-alpha.31" +version = "1.0.0-alpha.32" dependencies = [ "assert_cmd", "assert_fs", diff --git a/Cargo.toml b/Cargo.toml index 0b56c676..2435a125 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ [package] authors = ["Devon Govett "] name = "parcel_css" -version = "1.0.0-alpha.31" +version = "1.0.0-alpha.32" description = "A CSS parser, transformer, and minifier" license = "MPL-2.0" edition = "2021" diff --git a/package.json b/package.json index d4af758f..8b1e08dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@parcel/css", - "version": "1.13.0", + "version": "1.13.1", "license": "MPL-2.0", "description": "A CSS parser, transformer, and minifier written in Rust", "main": "node/index.js", diff --git a/src/selector.rs b/src/selector.rs index a30bfffa..fa3c5155 100644 --- a/src/selector.rs +++ b/src/selector.rs @@ -190,7 +190,7 @@ impl<'a, 'o, 'i> parcel_selectors::parser::Parser<'i> for SelectorParser<'a, 'o, "window-inactive" => WebKitScrollbar(WebKitScrollbarPseudoClass::WindowInactive), _ => { - if !name.starts_with("-") { + if !name.starts_with('-') { self.options.warn(loc.new_custom_error(SelectorParseErrorKind::UnsupportedPseudoClassOrElement(name.clone()))); } Custom(name.into()) @@ -219,7 +219,7 @@ impl<'a, 'o, 'i> parcel_selectors::parser::Parser<'i> for SelectorParser<'a, 'o, "local" if self.options.css_modules.is_some() => Local(Box::new(parcel_selectors::parser::Selector::parse(self, parser)?)), "global" if self.options.css_modules.is_some() => Global(Box::new(parcel_selectors::parser::Selector::parse(self, parser)?)), _ => { - if !name.starts_with("-") { + if !name.starts_with('-') { self.options.warn(parser.new_custom_error(SelectorParseErrorKind::UnsupportedPseudoClassOrElement(name.clone()))); } CustomFunction(name.into(), TokenList::parse(parser, &self.options, 0)?) @@ -272,7 +272,7 @@ impl<'a, 'o, 'i> parcel_selectors::parser::Parser<'i> for SelectorParser<'a, 'o, "-webkit-resizer" => WebKitScrollbar(WebKitScrollbarPseudoElement::Resizer), _ => { - if !name.starts_with("-") { + if !name.starts_with('-') { self.options.warn(loc.new_custom_error(SelectorParseErrorKind::UnsupportedPseudoClassOrElement(name.clone()))); } Custom(name.into()) @@ -292,7 +292,7 @@ impl<'a, 'o, 'i> parcel_selectors::parser::Parser<'i> for SelectorParser<'a, 'o, "cue" => CueFunction(Box::new(Selector::parse(self, arguments)?)), "cue-region" => CueRegionFunction(Box::new(Selector::parse(self, arguments)?)), _ => { - if !name.starts_with("-") { + if !name.starts_with('-') { self.options.warn(arguments.new_custom_error(SelectorParseErrorKind::UnsupportedPseudoClassOrElement(name.clone()))); } CustomFunction(name.into(), TokenList::parse(arguments, &self.options, 0)?)