Skip to content

Commit e280683

Browse files
authored
Merge partial solution impl blocks (pubgrub-rs#292) (#37)
There were two identical impl block for `impl<DP: DependencyProvider> PartialSolution<DP>`, so I merged them. I've also reduced the visibility since `PartialSolution` is also `pub(crate)`.
1 parent 3624c3b commit e280683

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/internal/partial_solution.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ impl<DP: DependencyProvider> PartialSolution<DP> {
210210
self.next_global_index += 1;
211211
}
212212

213+
/// The list of package that have not been selected after the last prioritization.
214+
///
215+
/// This list gets updated by [`Self::pick_highest_priority_pkg`] and cleared by backtracking.
216+
pub fn undecided_packages(&self) -> impl Iterator<Item = (&Id<DP::P>, &DP::Priority)> {
217+
self.prioritized_potential_packages.iter()
218+
}
219+
213220
/// Add a derivation.
214221
pub(crate) fn add_derivation(
215222
&mut self,

0 commit comments

Comments
 (0)