diff --git a/cli/build.rs b/cli/build.rs index a7e599b92..0986db748 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 {