From db4f27f3613c18ed7a28e787ea32d551d2cffb31 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 12 Feb 2020 10:03:55 +0100 Subject: [PATCH] Use the `matches!` macro from the standard library --- Cargo.lock | 6 ------ components/net/Cargo.toml | 1 - components/net/lib.rs | 2 -- components/script_plugins/Cargo.toml | 3 --- components/script_plugins/lib.rs | 2 -- components/selectors/Cargo.toml | 1 - components/selectors/lib.rs | 2 -- components/style/Cargo.toml | 1 - components/style/lib.rs | 3 --- 9 files changed, 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d7bea14ee6..c6854e14f5e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3658,7 +3658,6 @@ dependencies = [ "log", "malloc_size_of", "malloc_size_of_derive", - "matches", "mime", "mime_guess", "msg", @@ -4835,9 +4834,6 @@ dependencies = [ [[package]] name = "script_plugins" version = "0.0.1" -dependencies = [ - "matches", -] [[package]] name = "script_plugins_tests" @@ -4906,7 +4902,6 @@ dependencies = [ "derive_more 0.99.2", "fxhash", "log", - "matches", "phf", "phf_codegen", "precomputed-hash", @@ -5652,7 +5647,6 @@ dependencies = [ "log", "malloc_size_of", "malloc_size_of_derive", - "matches", "new_debug_unreachable", "num-derive", "num-integer", diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml index 2c6513e44b1..7917e3c53ea 100644 --- a/components/net/Cargo.toml +++ b/components/net/Cargo.toml @@ -37,7 +37,6 @@ libflate = "0.1" log = "0.4" malloc_size_of = { path = "../malloc_size_of" } malloc_size_of_derive = "0.1" -matches = "0.1" mime = "0.3" mime_guess = "2.0.0-alpha.6" msg = {path = "../msg"} diff --git a/components/net/lib.rs b/components/net/lib.rs index 08b46844a48..0fde4239692 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -11,8 +11,6 @@ extern crate log; #[macro_use] extern crate malloc_size_of_derive; #[macro_use] -extern crate matches; -#[macro_use] extern crate profile_traits; #[macro_use] extern crate serde; diff --git a/components/script_plugins/Cargo.toml b/components/script_plugins/Cargo.toml index 1b86f9cb0b7..c6bc3eb2250 100644 --- a/components/script_plugins/Cargo.toml +++ b/components/script_plugins/Cargo.toml @@ -11,6 +11,3 @@ plugin = true [features] unrooted_must_root_lint = [] - -[dependencies] -matches = "0.1" diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 89a7312d0a0..9ad7ae8502d 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -19,8 +19,6 @@ #![feature(rustc_private)] #![cfg(feature = "unrooted_must_root_lint")] -#[macro_use] -extern crate matches; extern crate rustc; extern crate rustc_driver; extern crate rustc_hir; diff --git a/components/selectors/Cargo.toml b/components/selectors/Cargo.toml index 21077f426c6..6968395d984 100644 --- a/components/selectors/Cargo.toml +++ b/components/selectors/Cargo.toml @@ -21,7 +21,6 @@ bench = [] [dependencies] bitflags = "1.0" -matches = "0.1" cssparser = "0.27" derive_more = "0.99" log = "0.4" diff --git a/components/selectors/lib.rs b/components/selectors/lib.rs index e8d8062dff7..14a0986e642 100644 --- a/components/selectors/lib.rs +++ b/components/selectors/lib.rs @@ -14,8 +14,6 @@ extern crate derive_more; extern crate fxhash; #[macro_use] extern crate log; -#[macro_use] -extern crate matches; extern crate phf; extern crate precomputed_hash; extern crate servo_arc; diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml index c3fcb196527..367161c3da0 100644 --- a/components/style/Cargo.toml +++ b/components/style/Cargo.toml @@ -50,7 +50,6 @@ lazy_static = "1" log = { version = "0.4", features = ["std"] } malloc_size_of = { path = "../malloc_size_of" } malloc_size_of_derive = "0.1" -matches = "0.1" num_cpus = {version = "1.1.0"} num-integer = "0.1" num-traits = "0.2" diff --git a/components/style/lib.rs b/components/style/lib.rs index 6c4b1d5a2a9..5096217d75c 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -61,9 +61,6 @@ extern crate log; extern crate malloc_size_of; #[macro_use] extern crate malloc_size_of_derive; -#[allow(unused_extern_crates)] -#[macro_use] -extern crate matches; #[cfg(feature = "gecko")] pub extern crate nsstring; #[cfg(feature = "gecko")]