diff --git a/Cargo.lock b/Cargo.lock index 0c2a759..e184b2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -449,7 +449,7 @@ dependencies = [ [[package]] name = "yasfw" -version = "0.1.0" +version = "0.1.1" dependencies = [ "bitflags", "clap", diff --git a/Cargo.toml b/Cargo.toml index a40df8e..ea453ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yasfw" -version = "0.1.0" +version = "0.1.1" authors = ["DDoSolitary "] edition = "2018" build = "build.rs" diff --git a/build.rs b/build.rs index 1abbe72..5e355ca 100644 --- a/build.rs +++ b/build.rs @@ -14,7 +14,7 @@ fn get_version() -> String { .map_err(|e| e.to_string()) .and_then(|output| { if output.status.success() { - Ok(String::from_utf8(output.stdout).unwrap()[1..].to_owned()) + Ok(String::from_utf8(output.stdout).unwrap().trim()[1..].to_owned()) } else { Err(format!("git describe command exited with {:?}", output.status.code())) }