Fix unused variable in Registry::crate_source

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-06-04 00:41:06 +10:00 committed by GitHub
parent ce87169b26
commit c929883e47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(&registry)?),
}