mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-07 20:50:03 +00:00
Fix typo in impl Version for crates_io_api::Version
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
e308b275d5
commit
4f0f01b75c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ impl<T: Version> Version for &T {
|
|||
impl Version for crates_io_api::Version {
|
||||
fn get_version(&self) -> Option<semver::Version> {
|
||||
// Remove leading `v` for git tags
|
||||
let ver_str = match self.num.strip_prefix('s') {
|
||||
let ver_str = match self.num.strip_prefix('v') {
|
||||
Some(v) => v,
|
||||
None => &self.num,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue