Skip to content

Commit

Permalink
Lints and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Dec 19, 2024
1 parent a9ba742 commit bda2b81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/internal/partial_solution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ pub(crate) struct PartialSolution<DP: DependencyProvider> {
/// The undecided packages order by their `Priority`.
///
/// The max heap allows quickly `pop`ing the highest priority package.
///
/// The `Reverse<u32>` is the discovery order of packages used as tiebreaker. Its order is that
/// of a breadth-first search.
#[allow(clippy::type_complexity)]
prioritized_potential_packages:
PriorityQueue<Id<DP::P>, (DP::Priority, Reverse<u32>), BuildHasherDefault<FxHasher>>,
/// Whether we have never backtracked, to enable fast path optimizations.
Expand Down
4 changes: 2 additions & 2 deletions src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ pub trait DependencyProvider {
///
/// The `package_conflicts_counts` argument provides access to some other heuristics that
/// are production users have found useful. Although the exact meaning/efficacy of those arguments may change.
///
///
/// If two packages have the same priority, PubGrub will biased toward a breadth first search.
///
///
/// Note: the resolver may call this even when the range has not changed,
/// if it is more efficient for the resolvers internal data structures.
fn prioritize(
Expand Down

0 comments on commit bda2b81

Please sign in to comment.