summaryrefslogtreecommitdiff
path: root/dhall_proc_macros
diff options
context:
space:
mode:
authorNadrieril2020-03-22 22:11:00 +0000
committerNadrieril2020-03-31 21:45:31 +0100
commita70922c6c6beb58a45da80f15576b54fb915ec28 (patch)
tree13ec93aef7a8d5bb717b7722116c58f76a57dc36 /dhall_proc_macros
parentfd4a81b1a92c1859941538b7f2212c621f4b43fd (diff)
Rework SimpleType
Diffstat (limited to 'dhall_proc_macros')
-rw-r--r--dhall_proc_macros/src/derive.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/dhall_proc_macros/src/derive.rs b/dhall_proc_macros/src/derive.rs
index f7edf3a..e484ec6 100644
--- a/dhall_proc_macros/src/derive.rs
+++ b/dhall_proc_macros/src/derive.rs
@@ -53,9 +53,9 @@ fn derive_for_struct(
quote!( (#name.to_owned(), #ty) )
});
Ok(quote! {
- ::serde_dhall::simple::TyKind::Record(
+ ::serde_dhall::SimpleType::Record(
vec![ #(#entries),* ].into_iter().collect()
- ).into()
+ )
})
}
@@ -92,9 +92,9 @@ fn derive_for_enum(
.collect::<Result<_, Error>>()?;
Ok(quote! {
- ::serde_dhall::simple::TyKind::Union(
+ ::serde_dhall::SimpleType::Union(
vec![ #(#entries),* ].into_iter().collect()
- ).into()
+ )
})
}
@@ -168,7 +168,7 @@ pub fn derive_static_type_inner(
impl #impl_generics ::serde_dhall::StaticType
for #ident #ty_generics
#where_clause {
- fn static_type() -> ::serde_dhall::simple::Type {
+ fn static_type() -> ::serde_dhall::SimpleType {
#(#assertions)*
#get_type
}