Skip to content

Commit a59747c

Browse files
committed
Another tweak to auto_encode to only use trait-qualified static methods
1 parent 907fa74 commit a59747c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ext/auto_encode.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,8 @@ fn mk_enum_deser_variant_nary(
10231023
cx.expr_path(span, ~[
10241024
cx.ident_of(~"std"),
10251025
cx.ident_of(~"serialize"),
1026+
cx.ident_of(~"traits"),
1027+
cx.ident_of(~"Decodable"),
10261028
cx.ident_of(~"decode"),
10271029
]),
10281030
~[cx.expr_var(span, ~"__d")]

0 commit comments

Comments
 (0)