Move devtools to std::net (fixes #5355).

This commit is contained in:
Ms2ger 2015-03-25 11:18:22 +01:00
parent e77c4e2d76
commit 638ce20e6f
8 changed files with 38 additions and 38 deletions

View file

@ -17,7 +17,7 @@ use msg::constellation_msg::PipelineId;
use collections::BTreeMap;
use core::cell::RefCell;
use rustc_serialize::json::{self, Json, ToJson};
use std::old_io::TcpStream;
use std::net::TcpStream;
use std::num::Float;
use std::sync::mpsc::{channel, Sender};

View file

@ -15,8 +15,8 @@ use collections::BTreeMap;
use msg::constellation_msg::PipelineId;
use rustc_serialize::json::{self, Json, ToJson};
use std::cell::RefCell;
use std::old_io::TcpStream;
use std::sync::mpsc::{channel, Sender};
use std::net::TcpStream;
use std::num::Float;
pub struct InspectorActor {

View file

@ -11,7 +11,7 @@ use actors::tab::{TabActor, TabActorMsg};
use protocol::JsonPacketStream;
use rustc_serialize::json;
use std::old_io::TcpStream;
use std::net::TcpStream;
#[derive(RustcEncodable)]
struct ActorTraits {

View file

@ -12,7 +12,7 @@ use devtools_traits::DevtoolScriptControlMsg::WantsLiveNotifications;
use protocol::JsonPacketStream;
use rustc_serialize::json;
use std::old_io::TcpStream;
use std::net::TcpStream;
#[derive(RustcEncodable)]
struct TabTraits;
@ -98,7 +98,7 @@ impl Actor for TabActor {
traits: TabTraits,
};
let console_actor = registry.find::<ConsoleActor>(&self.console);
console_actor.streams.borrow_mut().push(stream.clone());
console_actor.streams.borrow_mut().push(stream.try_clone().unwrap());
stream.write_json_packet(&msg);
console_actor.script_chan.send(
WantsLiveNotifications(console_actor.pipeline, true)).unwrap();