mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Reduce visibility of PubGrubReportFormatter
(#699)
This commit is contained in:
parent
9e2bbee7f0
commit
6f90edda78
4 changed files with 5 additions and 7 deletions
|
@ -2,7 +2,6 @@ use std::fmt::Formatter;
|
|||
|
||||
use pubgrub::range::Range;
|
||||
use pubgrub::report::{DefaultStringReporter, DerivationTree, Reporter};
|
||||
use pypi_types::IndexUrl;
|
||||
use rustc_hash::FxHashMap;
|
||||
use thiserror::Error;
|
||||
use url::Url;
|
||||
|
@ -12,10 +11,10 @@ use pep508_rs::Requirement;
|
|||
use puffin_distribution::DistributionDatabaseError;
|
||||
use puffin_normalize::PackageName;
|
||||
use puffin_traits::OnceMap;
|
||||
use pypi_types::IndexUrl;
|
||||
|
||||
use crate::pubgrub::{PubGrubPackage, PubGrubVersion};
|
||||
use crate::pubgrub::{PubGrubPackage, PubGrubReportFormatter, PubGrubVersion};
|
||||
use crate::version_map::VersionMap;
|
||||
use crate::PubGrubReportFormatter;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum ResolveError {
|
||||
|
|
|
@ -2,7 +2,6 @@ pub use error::ResolveError;
|
|||
pub use finder::{DistFinder, Reporter as FinderReporter};
|
||||
pub use manifest::Manifest;
|
||||
pub use prerelease_mode::PreReleaseMode;
|
||||
pub use pubgrub::PubGrubReportFormatter;
|
||||
pub use resolution::ResolutionGraph;
|
||||
pub use resolution_mode::ResolutionMode;
|
||||
pub use resolution_options::ResolutionOptions;
|
||||
|
|
|
@ -2,7 +2,7 @@ pub(crate) use crate::pubgrub::dependencies::PubGrubDependencies;
|
|||
pub(crate) use crate::pubgrub::distribution::PubGrubDistribution;
|
||||
pub(crate) use crate::pubgrub::package::PubGrubPackage;
|
||||
pub(crate) use crate::pubgrub::priority::{PubGrubPriorities, PubGrubPriority};
|
||||
pub use crate::pubgrub::report::PubGrubReportFormatter;
|
||||
pub(crate) use crate::pubgrub::report::PubGrubReportFormatter;
|
||||
pub(crate) use crate::pubgrub::version::{PubGrubVersion, MIN_VERSION};
|
||||
|
||||
mod dependencies;
|
||||
|
|
|
@ -7,9 +7,9 @@ use rustc_hash::FxHashMap;
|
|||
use super::{PubGrubPackage, PubGrubVersion};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct PubGrubReportFormatter<'a> {
|
||||
pub(crate) struct PubGrubReportFormatter<'a> {
|
||||
/// The versions that were available for each package
|
||||
pub available_versions: &'a FxHashMap<PubGrubPackage, Vec<PubGrubVersion>>,
|
||||
pub(crate) available_versions: &'a FxHashMap<PubGrubPackage, Vec<PubGrubVersion>>,
|
||||
}
|
||||
|
||||
impl PubGrubReportFormatter<'_> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue