From 4b1ad84cb2dad533069d685e212894d517d8fa57 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 23 Apr 2019 17:59:10 +0200 Subject: Silence warnings --- dhall/src/expr.rs | 3 +++ dhall/src/traits/dynamic_type.rs | 2 ++ 2 files changed, 5 insertions(+) (limited to 'dhall') diff --git a/dhall/src/expr.rs b/dhall/src/expr.rs index 1c3ec53..a548d32 100644 --- a/dhall/src/expr.rs +++ b/dhall/src/expr.rs @@ -114,6 +114,7 @@ impl<'a> From> for Typed<'a> { } #[doc(hidden)] +#[allow(dead_code)] impl<'a> Typed<'a> { pub(crate) fn as_expr(&self) -> &SubExpr> { &self.0 @@ -128,6 +129,7 @@ impl<'a> Normalized<'a> { pub(crate) fn into_expr(self) -> SubExpr { self.0 } + #[allow(dead_code)] pub(crate) fn unnote<'b>(self) -> Normalized<'b> { Normalized(self.0, self.1, PhantomData) } @@ -150,6 +152,7 @@ impl<'a> Type<'a> { } impl<'a> SimpleType<'a> { + #[allow(dead_code)] pub(crate) fn into_type(self) -> Type<'a> { self.into_type_ctx(&crate::typecheck::TypecheckContext::new()) } diff --git a/dhall/src/traits/dynamic_type.rs b/dhall/src/traits/dynamic_type.rs index 3b34363..f783950 100644 --- a/dhall/src/traits/dynamic_type.rs +++ b/dhall/src/traits/dynamic_type.rs @@ -1,8 +1,10 @@ use crate::expr::*; use crate::traits::StaticType; +#[allow(unused_imports)] use crate::typecheck::{ type_of_const, TypeError, TypeMessage, TypecheckContext, }; +#[allow(unused_imports)] use dhall_core::{Const, ExprF}; use std::borrow::Cow; -- cgit v1.2.3