g/src/precommit.rs
2025-02-10 09:08:12 +01:00

11 lines
200 B
Rust

use subprocess::Exec;
pub fn rust_pre_commit() {
println!("Running cargo fmt");
Exec::cmd("cargo")
.arg("fmt")
.popen()
.unwrap()
.wait()
.unwrap();
}