Skip to content

Commit

Permalink
v1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Sep 2, 2022
1 parent 1f4a7bb commit ccc1fd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
[package]
authors = ["Devon Govett <devongovett@gmail.com>"]
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"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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)?)
Expand Down Expand Up @@ -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())
Expand All @@ -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)?)
Expand Down

0 comments on commit ccc1fd6

Please sign in to comment.