Skip to content

Commit 260a355

Browse files
author
Jon Gjengset
committed
Revert now-unnecessary change
1 parent a031b03 commit 260a355

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cargo/core/package.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ impl<'cfg> PackageSet<'cfg> {
494494
requested_kinds: &[CompileKind],
495495
target_data: &RustcTargetData,
496496
force_all_targets: ForceAllTargets,
497-
) -> CargoResult<Vec<&Package>> {
497+
) -> CargoResult<()> {
498498
fn collect_used_deps(
499499
used: &mut BTreeSet<PackageId>,
500500
resolve: &Resolve,
@@ -558,7 +558,8 @@ impl<'cfg> PackageSet<'cfg> {
558558
force_all_targets,
559559
)?;
560560
}
561-
self.get_many(to_download.into_iter())
561+
self.get_many(to_download.into_iter())?;
562+
Ok(())
562563
}
563564

564565
pub fn sources(&self) -> Ref<'_, SourceMap<'cfg>> {

0 commit comments

Comments
 (0)