forked from mirrors/jj
style: do not return a Result
when this is not needed
This commit is contained in:
parent
801b243678
commit
794db9dae0
1 changed files with 1 additions and 3 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue