diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-02 12:45:28 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2015-01-08 09:58:46 -0500 |
commit | 16c7060bc8ff91527ae97f8a3feee5706747b9c5 (patch) | |
tree | 0cc29f2cc50c729d3a8f9521a22991fad67b9afd /components/devtools/protocol.rs | |
parent | cf616b90a236f88058dbad74b568b4d4379d2829 (diff) | |
download | servo-16c7060bc8ff91527ae97f8a3feee5706747b9c5.tar.gz servo-16c7060bc8ff91527ae97f8a3feee5706747b9c5.zip |
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
Diffstat (limited to 'components/devtools/protocol.rs')
-rw-r--r-- | components/devtools/protocol.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/devtools/protocol.rs b/components/devtools/protocol.rs index e657741b9e3..be27eed2ec1 100644 --- a/components/devtools/protocol.rs +++ b/components/devtools/protocol.rs @@ -5,12 +5,13 @@ /// Low-level wire protocol implementation. Currently only supports [JSON packets](https://wiki.mozilla.org/Remote_Debugging_Protocol_Stream_Transport#JSON_Packets). use serialize::{json, Encodable}; +use serialize::json::Json; use std::io::{IoError, OtherIoError, EndOfFile, TcpStream, IoResult}; use std::num; pub trait JsonPacketStream { fn write_json_packet<'a, T: Encodable<json::Encoder<'a>,IoError>>(&mut self, obj: &T); - fn read_json_packet(&mut self) -> IoResult<json::Json>; + fn read_json_packet(&mut self) -> IoResult<Json>; } impl JsonPacketStream for TcpStream { @@ -22,7 +23,7 @@ impl JsonPacketStream for TcpStream { self.write_str(s.as_slice()).unwrap(); } - fn read_json_packet<'a>(&mut self) -> IoResult<json::Json> { + fn read_json_packet<'a>(&mut self) -> IoResult<Json> { // https://wiki.mozilla.org/Remote_Debugging_Protocol_Stream_Transport // In short, each JSON packet is [ascii length]:[JSON data of given length] let mut buffer = vec!(); |