提交 2deca584 编写于 作者: E Eunchong Yu

Json doesn't need to depend on IoError to implement Encodable #13230

上级 1c2ccf05
......@@ -732,8 +732,8 @@ fn emit_map_elt_val(&mut self,
}
}
impl<E: ::Encoder<io::IoError>> Encodable<E, io::IoError> for Json {
fn encode(&self, e: &mut E) -> EncodeResult {
impl<E: ::Encoder<S>, S> Encodable<E, S> for Json {
fn encode(&self, e: &mut E) -> Result<(), S> {
match *self {
Number(v) => v.encode(e),
String(ref v) => v.encode(e),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册