diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/canvas/lib.rs | 2 | ||||
-rw-r--r-- | components/compositing/lib.rs | 2 | ||||
-rw-r--r-- | components/gfx/font_cache_task.rs | 2 | ||||
-rw-r--r-- | components/gfx/lib.rs | 2 | ||||
-rw-r--r-- | components/layout/construct.rs | 2 | ||||
-rw-r--r-- | components/layout/fragment.rs | 2 | ||||
-rw-r--r-- | components/layout/lib.rs | 2 | ||||
-rw-r--r-- | components/layout_traits/lib.rs | 2 | ||||
-rw-r--r-- | components/macros/lib.rs | 5 | ||||
-rw-r--r-- | components/msg/lib.rs | 2 | ||||
-rw-r--r-- | components/net/lib.rs | 2 | ||||
-rw-r--r-- | components/script/lib.rs | 5 | ||||
-rw-r--r-- | components/script_traits/lib.rs | 2 | ||||
-rw-r--r-- | components/style/lib.rs | 2 | ||||
-rw-r--r-- | components/util/lib.rs | 2 |
15 files changed, 28 insertions, 8 deletions
diff --git a/components/canvas/lib.rs b/components/canvas/lib.rs index 0dc2fb7e342..21f49dd7c46 100644 --- a/components/canvas/lib.rs +++ b/components/canvas/lib.rs @@ -2,6 +2,8 @@ * 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/. */ +#![deny(unused_imports, unused_variable)] + extern crate azure; extern crate geom; diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index a016afd11bd..f7644e8fc7f 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -7,6 +7,8 @@ #![feature(globs, phase, macro_rules)] +#![deny(unused_imports, unused_variable)] + #[phase(plugin, link)] extern crate log; diff --git a/components/gfx/font_cache_task.rs b/components/gfx/font_cache_task.rs index 8307be83715..9dd453fa8a2 100644 --- a/components/gfx/font_cache_task.rs +++ b/components/gfx/font_cache_task.rs @@ -127,7 +127,7 @@ impl FontCache { let family = self.web_families.get_mut(&family_name); family.add_template(format!("{}", url).as_slice(), Some(bytes)); }, - Err(msg) => { + Err(_) => { debug!("Failed to load web font: family={} url={}", family_name, url); } } diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index 838b20f71f8..71afd785ed6 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -4,6 +4,8 @@ #![feature(globs, macro_rules, phase, unsafe_destructor)] +#![deny(unused_imports, unused_variable)] + #![feature(phase)] #[phase(plugin, link)] extern crate log; diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 466a254237d..c88de5e8b3e 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -286,7 +286,7 @@ impl<'a, 'b> FlowConstructor<'a, 'b> { } { - let mut inline_flow = inline_flow_ref.get_mut().as_inline(); + let inline_flow = inline_flow_ref.get_mut().as_inline(); let (ascent, descent) = inline_flow.compute_minimum_ascent_and_descent(self.layout_context.font_context(), &**node.style()); inline_flow.minimum_block_size_above_baseline = ascent; inline_flow.minimum_depth_below_baseline = descent; diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index ce020f116e9..ea2132a8169 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -10,7 +10,7 @@ use css::node_style::StyledNode; use construct::FlowConstructor; use context::LayoutContext; use floats::{ClearBoth, ClearLeft, ClearRight, ClearType}; -use flow::{Flow, MutableFlowUtils}; +use flow::Flow; use flow; use flow_ref::FlowRef; use inline::{InlineFragmentContext, InlineMetrics}; diff --git a/components/layout/lib.rs b/components/layout/lib.rs index a782f4e1355..8cd1b44b4e2 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -7,6 +7,8 @@ #![feature(globs, macro_rules, phase, thread_local, unsafe_destructor)] +#![deny(unused_imports, unused_variable)] + #[phase(plugin, link)] extern crate log; diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index 612ba246e76..438afed3225 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -5,6 +5,8 @@ #![comment = "The Servo Parallel Browser Project"] #![license = "MPL"] +#![deny(unused_imports, unused_variable)] + extern crate gfx; extern crate script_traits; extern crate servo_msg = "msg"; diff --git a/components/macros/lib.rs b/components/macros/lib.rs index ec6b0ebed47..554d9833c98 100644 --- a/components/macros/lib.rs +++ b/components/macros/lib.rs @@ -4,6 +4,8 @@ #![feature(macro_rules, plugin_registrar, quote, phase)] +#![deny(unused_imports, unused_variable)] + //! Exports macros for use in other Servo crates. extern crate syntax; @@ -14,10 +16,9 @@ extern crate rustc; extern crate sync; use syntax::ast; -use syntax::parse::token; use rustc::lint::{Context, LintPass, LintPassObject, LintArray}; use rustc::plugin::Registry; -use rustc::middle::ty::{expr_ty, get}; +use rustc::middle::ty::expr_ty; use rustc::middle::typeck::astconv::AstConv; use rustc::util::ppaux::Repr; diff --git a/components/msg/lib.rs b/components/msg/lib.rs index 129ce20ca5a..b2ddb8427b9 100644 --- a/components/msg/lib.rs +++ b/components/msg/lib.rs @@ -2,6 +2,8 @@ * 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/. */ +#![deny(unused_imports, unused_variable)] + extern crate azure; extern crate geom; extern crate layers; diff --git a/components/net/lib.rs b/components/net/lib.rs index c4275944eff..bdf907e1c1b 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -4,6 +4,8 @@ #![feature(default_type_params, globs, managed_boxes, phase)] +#![deny(unused_imports, unused_variable)] + extern crate debug; extern crate collections; extern crate geom; diff --git a/components/script/lib.rs b/components/script/lib.rs index 6e44b295968..275051435bd 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -7,12 +7,11 @@ #![feature(globs, macro_rules, struct_variant, phase, unsafe_destructor)] -#![feature(phase)] +#![deny(unused_imports, unused_variable)] +#![allow(non_snake_case_functions)] #![doc="The script crate contains all matters DOM."] -#![allow(non_snake_case_functions)] - #[phase(plugin, link)] extern crate log; diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index d98c1de0e8b..4cead079ff1 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -5,6 +5,8 @@ #![comment = "The Servo Parallel Browser Project"] #![license = "MPL"] +#![deny(unused_imports, unused_variable)] + extern crate geom; extern crate servo_msg = "msg"; extern crate servo_net = "net"; diff --git a/components/style/lib.rs b/components/style/lib.rs index 6bf8b79e842..869905d4a3f 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -7,6 +7,8 @@ #![feature(globs, macro_rules)] +#![deny(unused_imports, unused_variable)] + #![feature(phase)] #[phase(plugin, link)] extern crate log; diff --git a/components/util/lib.rs b/components/util/lib.rs index d05efb735b6..0d59b21124d 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -4,6 +4,8 @@ #![feature(macro_rules,unsafe_destructor)] +#![deny(unused_imports, unused_variable)] + #![feature(phase)] #[phase(plugin, link)] extern crate log; |