Skip to content

Commit

Permalink
Cleanup tmp after code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lubkoll committed Jul 24, 2024
1 parent 04d69d0 commit a8d1822
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smart-contracts/proto-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ fn main() {
compile_proto_and_services(&temp_dir);
copy_generated_files(&temp_dir, &proto_dir);

if tmp_build_dir.exists() {
fs::remove_dir_all(tmp_build_dir.clone()).unwrap();
}

info!("Running rustfmt on prost/tonic-generated code");
run_rustfmt(&proto_dir);
}
Expand Down

0 comments on commit a8d1822

Please sign in to comment.