mirror of
https://github.com/serde-rs/json.git
synced 2025-10-01 06:51:58 +00:00
Use serde_codegen::expand in json_tests/build.rs
This commit is contained in:
parent
1558900eef
commit
3bafe903a8
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user