Fix destination for registry_gen.rs

This commit is contained in:
Charlie Marsh
2023-01-02 21:29:08 -05:00
parent 5d3ff69053
commit 8ab8217ca5

View File

@@ -211,7 +211,7 @@ pub fn main(cli: &Cli) -> Result<()> {
let file = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.expect("Failed to find root directory")
.join("registry_gen.rs");
.join("src/registry_gen.rs");
if fs::read(&file).map_or(true, |old| old != stdout) {
fs::write(&file, stdout)?;
}