mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-13 22:26:37 +00:00
Fix unused variable in Registry::crate_source
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
ce87169b26
commit
c929883e47
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,8 @@ impl Registry {
|
|||
CrateSource {
|
||||
source_type: match self {
|
||||
#[cfg(feature = "git")]
|
||||
Registry::Git(registry) => SourceType::Git,
|
||||
Registry::Sparse(registry) => SourceType::Sparse,
|
||||
Registry::Git(_) => SourceType::Git,
|
||||
Registry::Sparse(_) => SourceType::Sparse,
|
||||
},
|
||||
url: MaybeOwned::Owned(Url::parse(®istry)?),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue