Skip to content

Commit 2464dab

Browse files
committed
fix: clippy error in build script
1 parent 0fa1ff3 commit 2464dab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

stacks-common/build.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,22 @@ fn main() {
7474
"pub const GIT_COMMIT: Option<&'static str> = {git_commit:?};\n",
7575
));
7676
if let Some(git_commit) = git_commit {
77-
println!("cargo:rustc-env=GIT_COMMIT={}", git_commit);
77+
println!("cargo:rustc-env=GIT_COMMIT={git_commit}");
7878
}
7979

8080
let git_branch = current_git_branch();
8181
rust_code.push_str(&format!(
8282
"pub const GIT_BRANCH: Option<&'static str> = {git_branch:?};\n",
8383
));
8484
if let Some(git_branch) = git_branch {
85-
println!("cargo:rustc-env=GIT_BRANCH={}", git_branch);
85+
println!("cargo:rustc-env=GIT_BRANCH={git_branch}");
8686
}
8787

8888
let is_clean = if is_working_tree_clean() { "" } else { "+" };
8989
rust_code.push_str(&format!(
90-
"pub const GIT_TREE_CLEAN: Option<&'static str> = Some(\"{}\");\n",
91-
is_clean
90+
"pub const GIT_TREE_CLEAN: Option<&'static str> = Some(\"{is_clean}\");\n",
9291
));
93-
println!("cargo:rustc-env=GIT_TREE_CLEAN={}", is_clean);
92+
println!("cargo:rustc-env=GIT_TREE_CLEAN={is_clean}");
9493

9594
let out_dir = env::var_os("OUT_DIR").unwrap();
9695
let dest_path = Path::new(&out_dir).join("versions.rs");

0 commit comments

Comments
 (0)