From be22a5344d2b3b47bb1d3ae848a4b0ecc59d9b99 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Wed, 2 Oct 2024 21:49:19 +0200 Subject: [PATCH] style: acknowledge that `()` is always returned --- cli/build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/build.rs b/cli/build.rs index dbe485faed..993a0913e2 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -19,7 +19,7 @@ use std::str; const GIT_HEAD_PATH: &str = "../.git/HEAD"; const JJ_OP_HEADS_PATH: &str = "../.jj/repo/op_heads/heads"; -fn main() -> std::io::Result<()> { +fn main() { let version = std::env::var("CARGO_PKG_VERSION").unwrap(); if Path::new(GIT_HEAD_PATH).exists() { @@ -37,8 +37,6 @@ fn main() -> std::io::Result<()> { } else { println!("cargo:rustc-env=JJ_VERSION={version}"); } - - Ok(()) } fn get_git_hash() -> Option {