mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #17185 - servo:unused, r=emilio
Fix some "unused" warnings
This commit is contained in:
commit
87005a0df3
5 changed files with 1 additions and 18 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1456,9 +1456,7 @@ dependencies = [
|
|||
name = "layout_tests"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"layout 0.0.1",
|
||||
"script_layout_interface 0.0.1",
|
||||
"size_of_test 0.0.1",
|
||||
]
|
||||
|
||||
|
|
|
@ -519,17 +519,6 @@ fn matches_simple_selector<E, F>(
|
|||
where E: Element,
|
||||
F: FnMut(&E, ElementSelectorFlags),
|
||||
{
|
||||
macro_rules! relation_if {
|
||||
($ex:expr, $flag:ident) => {
|
||||
if $ex {
|
||||
context.relations |= $flag;
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
match *selector {
|
||||
Component::Combinator(_) => unreachable!(),
|
||||
Component::PseudoElement(ref pseudo) => {
|
||||
|
|
|
@ -10,7 +10,5 @@ path = "lib.rs"
|
|||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
atomic_refcell = "0.1"
|
||||
layout = {path = "../../../components/layout"}
|
||||
script_layout_interface = {path = "../../../components/script_layout_interface"}
|
||||
size_of_test = {path = "../../../components/size_of_test"}
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
extern crate atomic_refcell;
|
||||
extern crate layout;
|
||||
extern crate script_layout_interface;
|
||||
#[macro_use] extern crate size_of_test;
|
||||
|
||||
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
||||
|
|
|
@ -34,7 +34,7 @@ extern crate url;
|
|||
|
||||
use devtools_traits::DevtoolsControlMsg;
|
||||
use hyper::server::{Handler, Listening, Server};
|
||||
use net::connector::{create_http_connector, create_ssl_client};
|
||||
use net::connector::create_ssl_client;
|
||||
use net::fetch::cors_cache::CorsCache;
|
||||
use net::fetch::methods::{self, FetchContext};
|
||||
use net::filemanager_thread::FileManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue