Use serde_codegen::expand in json_tests/build.rs

This commit is contained in:
David Tolnay 2016-06-10 22:53:56 -07:00
parent 1558900eef
commit 3bafe903a8
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -2,7 +2,6 @@ extern crate skeptic;
#[cfg(feature = "with-syntex")]
mod with_syntex {
extern crate syntex;
extern crate serde_codegen;
extern crate indoc;
@ -19,11 +18,8 @@ mod with_syntex {
let src = Path::new(src);
let dst = Path::new(&out_dir).join(dst);
let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry);
indoc::register(&mut registry);
registry.expand("", &src, &dst).unwrap();
serde_codegen::expand(&src, &dst).unwrap();
indoc::expand(&dst, &dst).unwrap();
}
}
}