mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Move devtools to std::net (fixes #5355).
This commit is contained in:
parent
e77c4e2d76
commit
638ce20e6f
8 changed files with 38 additions and 38 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue