Use serde_codegen::expand in serde_tests/build.rs

This commit is contained in:
David Tolnay 2016-06-10 22:55:27 -07:00
parent 84a573c926
commit 021f4f2d70
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -13,10 +13,6 @@ fn main() {
] {
let src = Path::new(src);
let dst = Path::new(&out_dir).join(dst);
let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry);
registry.expand("", &src, &dst).unwrap();
serde_codegen::expand(&src, &dst).unwrap();
}
}