Make the maintainer API public

This commit is contained in:
Graham Christensen 2019-01-01 17:34:58 -05:00
parent 810cdbe4c4
commit c058b261e2
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -3,7 +3,7 @@ use std::collections::HashMap;
use std::path::Path;
#[derive(Deserialize, Debug, Eq, PartialEq)]
struct ImpactedMaintainers(HashMap<Maintainer, Vec<Package>>);
pub struct ImpactedMaintainers(HashMap<Maintainer, Vec<Package>>);
#[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),