From c058b261e2d01b9b62262f1cce946a07eb0ca011 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 1 Jan 2019 17:34:58 -0500 Subject: [PATCH] Make the maintainer API public --- ofborg/src/maintainers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofborg/src/maintainers.rs b/ofborg/src/maintainers.rs index 2dcf9dd..57bb66e 100644 --- a/ofborg/src/maintainers.rs +++ b/ofborg/src/maintainers.rs @@ -3,7 +3,7 @@ use std::collections::HashMap; use std::path::Path; #[derive(Deserialize, Debug, Eq, PartialEq)] -struct ImpactedMaintainers(HashMap>); +pub struct ImpactedMaintainers(HashMap>); #[derive(Deserialize, Debug, Eq, PartialEq, Hash)] struct Maintainer(String); impl<'a> From<&'a str> for Maintainer { @@ -20,7 +20,7 @@ impl<'a> From<&'a str> for Package { } #[derive(Debug)] -enum CalculationError { +pub enum CalculationError { DeserializeError(serde_json::Error), Io(std::io::Error), Utf8(std::string::FromUtf8Error),