mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Add diagnostic(help)
to DuplicateVersionReq
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
ff0bd4d948
commit
e2207f7b59
1 changed files with 5 additions and 1 deletions
|
@ -186,7 +186,11 @@ pub enum BinstallError {
|
||||||
/// This occurs when you specified `--version` while also using
|
/// This occurs when you specified `--version` while also using
|
||||||
/// form `$crate_name@$ver` tp specify version requirements.
|
/// form `$crate_name@$ver` tp specify version requirements.
|
||||||
#[error("duplicate version requirements")]
|
#[error("duplicate version requirements")]
|
||||||
#[diagnostic(severity(error), code(binstall::version::requirement))]
|
#[diagnostic(
|
||||||
|
severity(error),
|
||||||
|
code(binstall::version::requirement),
|
||||||
|
help("Remove the `--version req` or simply use `$crate_name`")
|
||||||
|
)]
|
||||||
DuplicateVersionReq,
|
DuplicateVersionReq,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue