From 94023b1d89f0e25ddf08f0137f1dc890960223dc Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 21 Apr 2015 12:00:05 -0700 Subject: Fix serde-only compilation --- src/encoder/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encoder') 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: &T) -> Value { #[cfg(all(not(feature = "rustc-serialize"), feature = "serde"))] pub fn encode(t: &T) -> Value { let mut e = Encoder::new(); - t.deserialize(&mut e).unwrap(); + t.serialize(&mut e).unwrap(); Value::Table(e.toml) } -- cgit v1.2.3