outpath: Make some types public for nix-env
This commit is contained in:
parent
9f544b04ca
commit
d68e35e631
|
@ -47,6 +47,7 @@ pub mod locks;
|
||||||
pub mod maintainers;
|
pub mod maintainers;
|
||||||
pub mod message;
|
pub mod message;
|
||||||
pub mod nix;
|
pub mod nix;
|
||||||
|
pub mod nixenv;
|
||||||
pub mod nixstats;
|
pub mod nixstats;
|
||||||
pub mod notifyworker;
|
pub mod notifyworker;
|
||||||
pub mod outpathdiff;
|
pub mod outpathdiff;
|
||||||
|
|
|
@ -112,7 +112,7 @@ impl OutPathDiff {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type PackageOutPaths = HashMap<PackageArch, OutPath>;
|
pub type PackageOutPaths = HashMap<PackageArch, OutPath>;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Hash, Eq, Clone)]
|
#[derive(Debug, PartialEq, Hash, Eq, Clone)]
|
||||||
pub struct PackageArch {
|
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()
|
data.lines()
|
||||||
.filter_map(|line| match line {
|
.filter_map(|line| match line {
|
||||||
Ok(line) => Some(line),
|
Ok(line) => Some(line),
|
||||||
|
|
Loading…
Reference in a new issue