From f670dafb8a89d8a1294ceab10318454e394c1cec Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 21 Aug 2023 21:20:17 -0400 Subject: clippy auto-fixes Signed-off-by: Xe Iaso --- src/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build.rs') diff --git a/src/build.rs b/src/build.rs index d2fb8e2..ec42c41 100644 --- a/src/build.rs +++ b/src/build.rs @@ -5,7 +5,7 @@ fn main() -> Result<()> { Ructe::from_env()?.compile_templates("templates")?; let output = Command::new("git") - .args(&["rev-parse", "HEAD"]) + .args(["rev-parse", "HEAD"]) .output() .unwrap(); @@ -16,7 +16,7 @@ fn main() -> Result<()> { println!( "cargo:rustc-env=GITHUB_SHA={}", if git_hash.as_str() == "" { - out.into() + out } else { git_hash } -- cgit v1.2.3