Skip to content

Commit

Permalink
refactor: SourceId from source replacment shouldn't be named
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Sep 19, 2023
1 parent 2ded388 commit 1cecee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/sources/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ restore the source replacement configuration to continue the build
let mut srcs = Vec::new();
if let Some(registry) = def.registry {
let url = url(&registry, &format!("source.{}.registry", name))?;
srcs.push(SourceId::for_named_registry(&url, &name)?);
srcs.push(SourceId::for_registry(&url)?);
}
if let Some(local_registry) = def.local_registry {
let path = local_registry.resolve_path(self.config);
Expand Down

0 comments on commit 1cecee2

Please sign in to comment.