From d68e35e6311d4825c49150c92c03f0e4644669d9 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sat, 13 Apr 2019 10:32:13 -0400 Subject: [PATCH] outpath: Make some types public for nix-env --- ofborg/src/lib.rs | 1 + ofborg/src/outpathdiff.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ofborg/src/lib.rs b/ofborg/src/lib.rs index f37f33a..5f57650 100644 --- a/ofborg/src/lib.rs +++ b/ofborg/src/lib.rs @@ -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; diff --git a/ofborg/src/outpathdiff.rs b/ofborg/src/outpathdiff.rs index 13807c9..95334a3 100644 --- a/ofborg/src/outpathdiff.rs +++ b/ofborg/src/outpathdiff.rs @@ -112,7 +112,7 @@ impl OutPathDiff { } } -type PackageOutPaths = HashMap; +pub type PackageOutPaths = HashMap; #[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),