From 90a17e0459a3725479a17db5c33b9367dc97d7a7 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 28 Feb 2024 02:25:37 +0100 Subject: [PATCH] Fixup for https://phabricator.services.mozilla.com/D183807 --- Cargo.lock | 7 +++++++ style/Cargo.toml | 1 + style/lib.rs | 3 +++ 3 files changed, 11 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index e595f84b3..f25fdad74 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -715,6 +715,12 @@ dependencies = [ "tendril", ] +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + [[package]] name = "memchr" version = "2.7.1" @@ -1312,6 +1318,7 @@ dependencies = [ "log", "malloc_size_of", "malloc_size_of_derive", + "matches", "mime", "mozbuild", "new_debug_unreachable", diff --git a/style/Cargo.toml b/style/Cargo.toml index b51b9a951..f9fb5671b 100644 --- a/style/Cargo.toml +++ b/style/Cargo.toml @@ -44,6 +44,7 @@ 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" mime = "0.3.13" new_debug_unreachable = "1.0" num-derive = "0.4" diff --git a/style/lib.rs b/style/lib.rs index 1bc630f9e..b3eac0e1b 100644 --- a/style/lib.rs +++ b/style/lib.rs @@ -50,6 +50,9 @@ 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 use nsstring; #[cfg(feature = "gecko")]