mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-29 21:44:51 +00:00
Use register_owned
in prefetch path (#750)
This commit is contained in:
parent
fd556ccd44
commit
607a5bee6d
1 changed files with 5 additions and 1 deletions
|
@ -852,7 +852,11 @@ impl<'a, Provider: ResolverProvider> Resolver<'a, Provider> {
|
|||
}
|
||||
|
||||
// Emit a request to fetch the metadata for this version.
|
||||
if self.index.distributions.register(&candidate.package_id()) {
|
||||
if self
|
||||
.index
|
||||
.distributions
|
||||
.register_owned(candidate.package_id())
|
||||
{
|
||||
let dist = candidate.into_distribution(index.clone(), base.clone());
|
||||
drop(entry);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue