diff options
author | Nadrieril | 2019-05-07 12:30:34 +0200 |
---|---|---|
committer | Nadrieril | 2019-05-07 12:30:34 +0200 |
commit | 542e316e456b676da791585379ba7da9ebb343f3 (patch) | |
tree | fddbdb962be1375c01df167e0c0341e8748f2cc7 /dhall | |
parent | 55b5be3407a8528bc47482a591b168a7cb0ce91e (diff) |
Fix derive
Diffstat (limited to 'dhall')
-rw-r--r-- | dhall/src/api/mod.rs | 2 | ||||
-rw-r--r-- | dhall/tests/traits.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dhall/src/api/mod.rs b/dhall/src/api/mod.rs index 1522c9c..0a0ef93 100644 --- a/dhall/src/api/mod.rs +++ b/dhall/src/api/mod.rs @@ -3,6 +3,8 @@ pub(crate) mod traits; /// Deserialization of Dhall expressions into Rust pub mod de { + #[doc(hidden)] + pub use crate::phase::SimpleType; pub use crate::traits::{Deserialize, SimpleStaticType, StaticType}; #[doc(hidden)] pub use dhall_proc_macros::SimpleStaticType; diff --git a/dhall/tests/traits.rs b/dhall/tests/traits.rs index 6604c06..65220dc 100644 --- a/dhall/tests/traits.rs +++ b/dhall/tests/traits.rs @@ -5,7 +5,7 @@ use dhall_syntax::{SubExpr, X}; #[test] fn test_static_type() { - fn mktype(x: SubExpr<X, X>) -> dhall::expr::SimpleType { + fn mktype(x: SubExpr<X, X>) -> dhall::de::SimpleType { x.into() } |