mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-01 20:31:12 +00:00
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:
parent
0baa376627
commit
23261b7e2e
17 changed files with 51 additions and 53 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue