style: 格式化代码并优化导入顺序
This commit is contained in:
7
build.rs
7
build.rs
@@ -1,12 +1,13 @@
|
||||
use std::env;
|
||||
|
||||
|
||||
fn main() {
|
||||
// Only generate completions when explicitly requested
|
||||
if env::var("GENERATE_COMPLETIONS").is_ok() {
|
||||
println!("cargo:warning=To generate shell completions, run: cargo run --bin quicommit -- completions");
|
||||
println!(
|
||||
"cargo:warning=To generate shell completions, run: cargo run --bin quicommit -- completions"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Rerun if build.rs changes
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user