mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
This commit is contained in:
parent
ff8cbff810
commit
95fc29fa0d
255 changed files with 3550 additions and 3362 deletions
|
@ -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<DevtoolsControlMsg>;
|
||||
pub type DevtoolsControlPort = Receiver<DevtoolScriptControlMsg>;
|
||||
|
||||
|
@ -99,14 +102,14 @@ pub enum ScriptDevtoolControlMsg {
|
|||
ReportConsoleMsg(String),
|
||||
}
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[derive(Encodable)]
|
||||
pub struct Modification{
|
||||
pub attributeName: String,
|
||||
pub newValue: Option<String>,
|
||||
}
|
||||
|
||||
impl<D:Decoder<E>, E> Decodable<D, E> for Modification {
|
||||
fn decode(d: &mut D) -> Result<Modification, E> {
|
||||
impl Decodable for Modification {
|
||||
fn decode<D: Decoder>(d: &mut D) -> Result<Modification, D::Error> {
|
||||
d.read_struct("Modification", 2u, |d|
|
||||
Ok(Modification {
|
||||
attributeName: try!(d.read_struct_field("attributeName", 0u, |d| Decodable::decode(d))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue