From 95fc29fa0db21959df99d81cdbb9561226321d2f Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 15 Jan 2015 13:26:44 -0500 Subject: Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. --- components/devtools_traits/lib.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'components/devtools_traits/lib.rs') diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs index 158a01272f6..14c6c59b56c 100644 --- a/components/devtools_traits/lib.rs +++ b/components/devtools_traits/lib.rs @@ -9,9 +9,10 @@ #![crate_name = "devtools_traits"] #![crate_type = "rlib"] +#![feature(int_uint)] + #![allow(non_snake_case)] #![allow(missing_copy_implementations)] -#![feature(globs)] extern crate "msg" as servo_msg; extern crate serialize; @@ -27,6 +28,8 @@ use servo_msg::constellation_msg::PipelineId; use servo_util::str::DOMString; use url::Url; +use std::sync::mpsc::{Sender, Receiver}; + pub type DevtoolsControlChan = Sender; pub type DevtoolsControlPort = Receiver; @@ -99,14 +102,14 @@ pub enum ScriptDevtoolControlMsg { ReportConsoleMsg(String), } -#[deriving(Encodable)] +#[derive(Encodable)] pub struct Modification{ pub attributeName: String, pub newValue: Option, } -impl, E> Decodable for Modification { - fn decode(d: &mut D) -> Result { +impl Decodable for Modification { + fn decode(d: &mut D) -> Result { d.read_struct("Modification", 2u, |d| Ok(Modification { attributeName: try!(d.read_struct_field("attributeName", 0u, |d| Decodable::decode(d))), -- cgit v1.2.3