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()),