outpath: Make some types public for nix-env

This commit is contained in:
Graham Christensen 2019-04-13 10:32:13 -04:00
parent 9f544b04ca
commit d68e35e631
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 3 additions and 2 deletions

View file

@ -47,6 +47,7 @@ pub mod locks;
pub mod maintainers;
pub mod message;
pub mod nix;
pub mod nixenv;
pub mod nixstats;
pub mod notifyworker;
pub mod outpathdiff;

View file

@ -112,7 +112,7 @@ impl OutPathDiff {
}
}
type PackageOutPaths = HashMap<PackageArch, OutPath>;
pub type PackageOutPaths = HashMap<PackageArch, OutPath>;
#[derive(Debug, PartialEq, Hash, Eq, Clone)]
pub struct PackageArch {
@ -191,7 +191,7 @@ impl OutPaths {
}
}
fn parse_lines(data: &mut BufRead) -> PackageOutPaths {
pub fn parse_lines(data: &mut BufRead) -> PackageOutPaths {
data.lines()
.filter_map(|line| match line {
Ok(line) => Some(line),