mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Fix parsing semver number in entry.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
15e775a916
commit
b06d6a22a9
1 changed files with 3 additions and 3 deletions
|
@ -616,9 +616,9 @@ pub fn self_install(
|
||||||
name: CompactString::const_new("cargo-binstall"),
|
name: CompactString::const_new("cargo-binstall"),
|
||||||
version_req: CompactString::const_new("*"),
|
version_req: CompactString::const_new("*"),
|
||||||
current_version: Version::new(
|
current_version: Version::new(
|
||||||
env!("CARGO_PKG_VERSION_MAJOR").try_into().unwrap(),
|
env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap(),
|
||||||
env!("CARGO_PKG_VERSION_MINOR").try_into().unwrap(),
|
env!("CARGO_PKG_VERSION_MINOR").parse().unwrap(),
|
||||||
env!("CARGO_PKG_VERSION_PATCH").try_into().unwrap(),
|
env!("CARGO_PKG_VERSION_PATCH").parse().unwrap(),
|
||||||
),
|
),
|
||||||
source: CrateSource::cratesio_registry(),
|
source: CrateSource::cratesio_registry(),
|
||||||
target: CompactString::const_new(TARGET),
|
target: CompactString::const_new(TARGET),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue