Skip to content

Commit 442e2fd

Browse files
committed
WorkspaceResolve: Use descriptive lifetime label.
1 parent 94c7bc7 commit 442e2fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/cargo/ops/resolve.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ use log::{debug, trace};
2525
use std::collections::HashSet;
2626

2727
/// Result for `resolve_ws_with_opts`.
28-
pub struct WorkspaceResolve<'a> {
28+
pub struct WorkspaceResolve<'cfg> {
2929
/// Packages to be downloaded.
30-
pub pkg_set: PackageSet<'a>,
30+
pub pkg_set: PackageSet<'cfg>,
3131
/// The resolve for the entire workspace.
3232
///
3333
/// This may be `None` for things like `cargo install` and `-Zavoid-dev-deps`.
@@ -72,14 +72,14 @@ pub fn resolve_ws<'a>(ws: &Workspace<'a>) -> CargoResult<(PackageSet<'a>, Resolv
7272
///
7373
/// `specs` may be empty, which indicates it should resolve all workspace
7474
/// members. In this case, `opts.all_features` must be `true`.
75-
pub fn resolve_ws_with_opts<'a>(
76-
ws: &Workspace<'a>,
75+
pub fn resolve_ws_with_opts<'cfg>(
76+
ws: &Workspace<'cfg>,
7777
target_data: &RustcTargetData,
7878
requested_target: CompileKind,
7979
opts: &ResolveOpts,
8080
specs: &[PackageIdSpec],
8181
has_dev_units: HasDevUnits,
82-
) -> CargoResult<WorkspaceResolve<'a>> {
82+
) -> CargoResult<WorkspaceResolve<'cfg>> {
8383
let mut registry = PackageRegistry::new(ws.config())?;
8484
let mut add_patches = true;
8585
let resolve = if ws.ignore_lock() {
@@ -371,10 +371,10 @@ pub fn add_overrides<'a>(
371371
Ok(())
372372
}
373373

374-
pub fn get_resolved_packages<'a>(
374+
pub fn get_resolved_packages<'cfg>(
375375
resolve: &Resolve,
376-
registry: PackageRegistry<'a>,
377-
) -> CargoResult<PackageSet<'a>> {
376+
registry: PackageRegistry<'cfg>,
377+
) -> CargoResult<PackageSet<'cfg>> {
378378
let ids: Vec<PackageId> = resolve.iter().collect();
379379
registry.get(&ids)
380380
}

0 commit comments

Comments
 (0)