We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2ccf0 commit 2deca58Copy full SHA for 2deca58
src/libserialize/json.rs
@@ -732,8 +732,8 @@ impl<'a> ::Encoder<io::IoError> for PrettyEncoder<'a> {
732
}
733
734
735
-impl<E: ::Encoder<io::IoError>> Encodable<E, io::IoError> for Json {
736
- 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> {
737
match *self {
738
Number(v) => v.encode(e),
739
String(ref v) => v.encode(e),
0 commit comments