diff --git a/crates/node/core/build.rs b/crates/node/core/build.rs index f9487a14f19b..2a4c2705ed46 100644 --- a/crates/node/core/build.rs +++ b/crates/node/core/build.rs @@ -39,10 +39,7 @@ fn main() -> Result<(), Box> { // - The latest version from Cargo.toml // - The short SHA of the latest commit. // Example: 0.1.0 (defa64b2) - println!( - "cargo:rustc-env=RETH_SHORT_VERSION={}", - format!("{pkg_version}{version_suffix} ({sha_short})") - ); + println!("cargo:rustc-env=RETH_SHORT_VERSION={pkg_version}{version_suffix} ({sha_short})"); // LONG_VERSION // The long version information for reth. @@ -81,7 +78,7 @@ fn main() -> Result<(), Box> { // Example: reth/v0.1.0-alpha.1-428a6dc2f/aarch64-apple-darwin println!( "cargo:rustc-env=RETH_P2P_CLIENT_VERSION={}", - format!("reth/v{pkg_version}-{sha_short}/{}", env::var("VERGEN_CARGO_TARGET_TRIPLE")?) + format_args!("reth/v{pkg_version}-{sha_short}/{}", env::var("VERGEN_CARGO_TARGET_TRIPLE")?) ); Ok(())