Skip to content

Commit

Permalink
style: acknowledge that () is always returned
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltardieu committed Oct 2, 2024
1 parent e7f17c0 commit be22a53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -37,8 +37,6 @@ fn main() -> std::io::Result<()> {
} else {
println!("cargo:rustc-env=JJ_VERSION={version}");
}

Ok(())
}

fn get_git_hash() -> Option<String> {
Expand Down

0 comments on commit be22a53

Please sign in to comment.