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

@ -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();