From 49f3f6a2ab07744214efe5a92542f568e5eb2d15 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:02:10 +1000 Subject: [PATCH] cargo fmt binstalk-registry/src/lib.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-registry/src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/binstalk-registry/src/lib.rs b/crates/binstalk-registry/src/lib.rs index fe181696..5c7dddd6 100644 --- a/crates/binstalk-registry/src/lib.rs +++ b/crates/binstalk-registry/src/lib.rs @@ -204,7 +204,9 @@ impl Registry { pub fn url(&self) -> Result, UrlParseError> { match self { #[cfg(feature = "git")] - Registry::Git(registry) => Url::parse(®istry.url().to_string()).map(MaybeOwned::Owned), + Registry::Git(registry) => { + Url::parse(®istry.url().to_string()).map(MaybeOwned::Owned) + } Registry::Sparse(registry) => Ok(MaybeOwned::Borrowed(registry.url())), } } @@ -219,8 +221,10 @@ impl Registry { }; Ok(match (registry.as_str(), source_type) { - ("https://index.crates.io/", SourceType::Sparse) | - ("https://github.com/rust-lang/crates.io-index", SourceType::Git) => CrateSource::cratesio_registry(), + ("https://index.crates.io/", SourceType::Sparse) + | ("https://github.com/rust-lang/crates.io-index", SourceType::Git) => { + CrateSource::cratesio_registry() + } _ => CrateSource { source_type, url: MaybeOwned::Owned(registry.into_owned()),