aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-21 12:00:05 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 12:00:05 -0700
commit94023b1d89f0e25ddf08f0137f1dc890960223dc (patch)
treed2b409d444c36d2b8ebbf05a10e39d1e3c38673d /src
parent3301c3963002d8293cb17294494923b2604a48ad (diff)
downloadmilf-rs-94023b1d89f0e25ddf08f0137f1dc890960223dc.tar.gz
milf-rs-94023b1d89f0e25ddf08f0137f1dc890960223dc.zip
Fix serde-only compilation
Diffstat (limited to 'src')
-rw-r--r--src/encoder/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoder/mod.rs b/src/encoder/mod.rs
index 8137c33..35e7212 100644
--- a/src/encoder/mod.rs
+++ b/src/encoder/mod.rs
@@ -171,7 +171,7 @@ pub fn encode<T: ::rustc_serialize::Encodable>(t: &T) -> Value {
#[cfg(all(not(feature = "rustc-serialize"), feature = "serde"))]
pub fn encode<T: ::serde::Serialize>(t: &T) -> Value {
let mut e = Encoder::new();
- t.deserialize(&mut e).unwrap();
+ t.serialize(&mut e).unwrap();
Value::Table(e.toml)
}