summaryrefslogtreecommitdiff
path: root/dhall_proc_macros
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
}