From c929883e4744b2eb0163570a27bb7ce984e4d587 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Wed, 4 Jun 2025 00:41:06 +1000 Subject: [PATCH] Fix unused variable in `Registry::crate_source` Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-registry/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/binstalk-registry/src/lib.rs b/crates/binstalk-registry/src/lib.rs index 8e98692b..fe40bd76 100644 --- a/crates/binstalk-registry/src/lib.rs +++ b/crates/binstalk-registry/src/lib.rs @@ -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)?), }