Skip to content

Commit

Permalink
Revert now-unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Gjengset committed Dec 18, 2020
1 parent a031b03 commit 260a355
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cargo/core/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ impl<'cfg> PackageSet<'cfg> {
requested_kinds: &[CompileKind],
target_data: &RustcTargetData,
force_all_targets: ForceAllTargets,
) -> CargoResult<Vec<&Package>> {
) -> CargoResult<()> {
fn collect_used_deps(
used: &mut BTreeSet<PackageId>,
resolve: &Resolve,
Expand Down Expand Up @@ -558,7 +558,8 @@ impl<'cfg> PackageSet<'cfg> {
force_all_targets,
)?;
}
self.get_many(to_download.into_iter())
self.get_many(to_download.into_iter())?;
Ok(())
}

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

0 comments on commit 260a355

Please sign in to comment.