From fc58dcbd434d8a8469d6c66a6f9c56f23338d5c5 Mon Sep 17 00:00:00 2001 From: Dan Burkert Date: Tue, 23 Sep 2014 23:45:56 -0700 Subject: [PATCH] use emit_tuple_arg while serializing tuples --- src/libserialize/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserialize/serialize.rs b/src/libserialize/serialize.rs index 2cda00ad6c4af..d005a8ef004fd 100644 --- a/src/libserialize/serialize.rs +++ b/src/libserialize/serialize.rs @@ -503,7 +503,7 @@ macro_rules! tuple ( $(let $name = $name; n += 1;)* s.emit_tuple(n, |s| { let mut i = 0; - $(try!(s.emit_seq_elt({ i+=1; i-1 }, |s| $name.encode(s)));)* + $(try!(s.emit_tuple_arg({ i+=1; i-1 }, |s| $name.encode(s)));)* Ok(()) }) }