Treat 1.2.3 as =1.2.3 to match cargo-install

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-12 18:33:31 +10:00
parent e2207f7b59
commit c87941211c
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 11 additions and 20 deletions

View file

@ -147,8 +147,7 @@ pub enum BinstallError {
///
/// This may be the case when using the `--version` option.
///
/// Note that using `--version 1.2.3` is interpreted as the requirement `^1.2.3` as per
/// Cargo.toml rules. If you want the exact version 1.2.3, use `--version '=1.2.3'`.
/// Note that using `--version 1.2.3` is interpreted as the requirement `=1.2.3`.
///
/// - Code: `binstall::version::mismatch`
/// - Exit: 82