Skip to content

Commit

Permalink
Simplify iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 19, 2024
1 parent 56019e3 commit 26a6dda
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/uv/src/commands/project/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub(super) async fn do_lock(
let constraints = vec![];

let mut overrides: Vec<UnresolvedRequirementSpecification> = vec![];
workspace.packages().values().for_each(|member| {
for member in workspace.packages().values() {
if let Some(override_dependencies) = member
.pyproject_toml()
.tool
Expand All @@ -142,8 +142,7 @@ pub(super) async fn do_lock(
overrides.push(UnresolvedRequirementSpecification::from(req));
}
}
});
let overrides = overrides;
}
let dev = vec![DEV_DEPENDENCIES.clone()];

let source_trees = vec![];
Expand Down

0 comments on commit 26a6dda

Please sign in to comment.