1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-08-04 21:52:54 +02:00

style: simplify string formatting

Most of this code was written before this was supported by Rust.

Closes #2912
This commit is contained in:
Hamir Mahal
2024-10-16 09:03:15 -07:00
committed by Andrew Gallant
parent e169881a36
commit f1b4b182f2
5 changed files with 11 additions and 12 deletions

View File

@ -22,7 +22,7 @@ fn set_windows_exe_options() {
manifest.push(MANIFEST);
let Some(manifest) = manifest.to_str() else { return };
println!("cargo:rerun-if-changed={}", MANIFEST);
println!("cargo:rerun-if-changed={MANIFEST}");
// Embed the Windows application manifest file.
println!("cargo:rustc-link-arg-bin=rg=/MANIFEST:EMBED");
println!("cargo:rustc-link-arg-bin=rg=/MANIFESTINPUT:{manifest}");
@ -42,5 +42,5 @@ fn set_git_revision_hash() {
if rev.is_empty() {
return;
}
println!("cargo:rustc-env=RIPGREP_BUILD_GIT_HASH={}", rev);
println!("cargo:rustc-env=RIPGREP_BUILD_GIT_HASH={rev}");
}