Following the lead from PackageId's Display, only display the registry's
URL if it's not the default registry (aka crates.io).
Before:
$ cargo install lazy_static
Updating registry `https://github.com/rust-lang/crates.io-index`
After:
$ dcargo install lazy_static
Updating registry
}
pub fn display_registry(&self) -> String {
- format!("registry `{}`", self.url())
+ if self.is_default_registry() {
+ "registry".to_string()
+ } else {
+ format!("registry `{}`", self.url())
+ }
}
/// Is this source from a filesystem path