Skip to content

Commit d3670a8

Browse files
nickelcemilio
authored andcommitted
Use the std::matches! macro
1 parent 7c58008 commit d3670a8

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ encoding_rs = "0.8"
2424
cssparser-macros = {path = "./macros", version = "0.6"}
2525
dtoa-short = "0.3"
2626
itoa = "1.0"
27-
matches = "0.1"
2827
phf = {version = ">=0.8,<=0.11", features = ["macros"]}
2928
serde = {version = "1.0", optional = true}
3029
smallvec = "1.0"

src/macros.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
use matches::matches;
65
use std::mem::MaybeUninit;
76

87
/// Expands to a `match` expression with string patterns,

src/nth.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
use super::{BasicParseError, Parser, ParserInput, Token};
6-
use matches::matches;
76

87
/// Parse the *An+B* notation, as found in the `:nth-child()` selector.
98
/// The input is typically the arguments of a function,

src/serializer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use dtoa_short::{self, Notation};
66
use itoa;
7-
use matches::matches;
87
use std::fmt::{self, Write};
98
use std::str;
109

src/tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
extern crate test;
77

88
use encoding_rs;
9-
use matches::matches;
109
use serde_json::{self, json, Map, Value};
1110

1211
#[cfg(feature = "bench")]

src/tokenizer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use self::Token::*;
88
use crate::cow_rc_str::CowRcStr;
99
use crate::parser::ParserState;
10-
use matches::matches;
1110
use std::char;
1211
use std::i32;
1312
use std::ops::Range;

0 commit comments

Comments
 (0)