Apply some Edition 2024 fixes (#13479)

Some `ref`-removal and `use<>` fixes for the Rust Edition 2024
migration, which are also compatible with Rust Edition 2021.
This commit is contained in:
konsti 2025-05-16 10:34:22 +02:00 committed by GitHub
parent 0baa376627
commit 23261b7e2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 51 additions and 53 deletions

View file

@ -44,7 +44,7 @@ impl LoweredRequirement {
locations: &'data IndexLocations,
workspace: &'data Workspace,
git_member: Option<&'data GitWorkspaceMember<'data>>,
) -> impl Iterator<Item = Result<Self, LoweringError>> + 'data {
) -> impl Iterator<Item = Result<Self, LoweringError>> + use<'data> + 'data {
// Identify the source from the `tool.uv.sources` table.
let (sources, origin) = if let Some(source) = project_sources.get(&requirement.name) {
(Some(source), RequirementOrigin::Project)