mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix various build warnings.
This commit is contained in:
parent
95f71eea5c
commit
2026cbada2
20 changed files with 25 additions and 18 deletions
|
@ -5,6 +5,7 @@
|
|||
#![deny(unused_imports)]
|
||||
#![deny(unused_variables)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![allow(unstable)]
|
||||
|
||||
extern crate azure;
|
||||
extern crate geom;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![allow(unstable)]
|
||||
|
||||
extern crate "msg" as servo_msg;
|
||||
extern crate serialize;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//! Supports writing a trace file created during each layout scope
|
||||
//! that can be viewed by an external tool to make layout debugging easier.
|
||||
|
||||
#![macro_escape]
|
||||
#![macro_use]
|
||||
|
||||
use flow_ref::FlowRef;
|
||||
use flow;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#![deny(unused_imports)]
|
||||
#![deny(unused_variables)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![allow(unstable)]
|
||||
|
||||
extern crate azure;
|
||||
extern crate geom;
|
||||
|
|
|
@ -49,9 +49,9 @@ extern crate string_cache_macros;
|
|||
pub mod cors;
|
||||
|
||||
/// The implementation of the DOM.
|
||||
#[macro_escape]
|
||||
#[macro_use]
|
||||
pub mod dom {
|
||||
#[macro_escape]
|
||||
#[macro_use]
|
||||
pub mod macros;
|
||||
|
||||
/// The code to expose the DOM to JavaScript through IDL bindings.
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#![deny(unused_imports)]
|
||||
#![deny(unused_variables)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![allow(unstable)]
|
||||
|
||||
extern crate devtools_traits;
|
||||
extern crate geom;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#![deny(unused_imports)]
|
||||
#![deny(unused_variables)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![allow(unstable)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#![deny(unused_imports)]
|
||||
#![deny(unused_variables)]
|
||||
#![allow(unstable)]
|
||||
|
||||
#[cfg(target_os="android")]
|
||||
extern crate libc;
|
||||
|
|
|
@ -195,7 +195,7 @@ impl<'a, QueueData: 'static, WorkData: Send> WorkerProxy<'a, QueueData, WorkData
|
|||
|
||||
/// Retrieves the queue user data.
|
||||
#[inline]
|
||||
pub fn user_data<'a>(&'a self) -> &'a QueueData {
|
||||
pub fn user_data<'b>(&'b self) -> &'b QueueData {
|
||||
unsafe {
|
||||
mem::transmute(self.queue_data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue