From 7848c8e8d3147ebe428290558aa6c0efcbf59ee5 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 18 Mar 2020 18:58:51 +0000 Subject: Brutally make all of dhall pub --- dhall/src/simple.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dhall/src/simple.rs') diff --git a/dhall/src/simple.rs b/dhall/src/simple.rs index 45fa656..c00380c 100644 --- a/dhall/src/simple.rs +++ b/dhall/src/simple.rs @@ -38,12 +38,12 @@ pub enum STyKind { } impl SimpleValue { - pub(crate) fn new(kind: SValKind) -> Self { + pub fn new(kind: SValKind) -> Self { SimpleValue { kind: Box::new(kind), } } - pub(crate) fn from_nir(nir: &Nir) -> Option { + pub fn from_nir(nir: &Nir) -> Option { Some(SimpleValue::new(match nir.kind() { NirKind::Num(lit) => SValKind::Num(lit.clone()), NirKind::TextLit(x) => SValKind::Text( @@ -88,7 +88,7 @@ impl SimpleType { kind: Box::new(kind), } } - pub(crate) fn from_nir(nir: &Nir) -> Option { + pub fn from_nir(nir: &Nir) -> Option { Some(SimpleType::new(match nir.kind() { NirKind::BuiltinType(b) => match b { Builtin::Bool => STyKind::Bool, @@ -131,7 +131,7 @@ impl SimpleType { as_simple_ty: Some(self.clone()), } } - pub(crate) fn to_hir(&self) -> Hir { + pub fn to_hir(&self) -> Hir { let hir = |k| Hir::new(HirKind::Expr(k), Span::Artificial); hir(match self.kind() { STyKind::Bool => ExprKind::Builtin(Builtin::Bool), -- cgit v1.2.3