mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16: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 {
|
CrateSource {
|
||||||
source_type: match self {
|
source_type: match self {
|
||||||
#[cfg(feature = "git")]
|
#[cfg(feature = "git")]
|
||||||
Registry::Git(registry) => SourceType::Git,
|
Registry::Git(_) => SourceType::Git,
|
||||||
Registry::Sparse(registry) => SourceType::Sparse,
|
Registry::Sparse(_) => SourceType::Sparse,
|
||||||
},
|
},
|
||||||
url: MaybeOwned::Owned(Url::parse(®istry)?),
|
url: MaybeOwned::Owned(Url::parse(®istry)?),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue