ok/jj
1
0
Fork 0
forked from mirrors/jj

style: do not return a Result when this is not needed

This commit is contained in:
Samuel Tardieu 2024-10-02 21:49:19 +02:00
parent 801b243678
commit 794db9dae0

View file

@ -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<String> {