summaryrefslogtreecommitdiff
path: root/dhall_proc_macros/src
diff options
context:
space:
mode:
authorNadrieril2020-03-08 17:36:51 +0000
committerNadrieril2020-03-31 21:44:01 +0100
commit4e11e882b7d064e9ddf997f9a465206cf6e471aa (patch)
tree17cba8f042c0ca9c8b863839d9244b25aa9b7fe0 /dhall_proc_macros/src
parent84796fd247eb1a13fcd092a7cd7ec2d587b261bd (diff)
Split serde_dhall::Value to separate values from types
Diffstat (limited to 'dhall_proc_macros/src')
-rw-r--r--dhall_proc_macros/src/derive.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall_proc_macros/src/derive.rs b/dhall_proc_macros/src/derive.rs
index 48626a0..3a4f1aa 100644
--- a/dhall_proc_macros/src/derive.rs
+++ b/dhall_proc_macros/src/derive.rs
@@ -52,7 +52,7 @@ fn derive_for_struct(
let ty = static_type(ty);
quote!( (#name.to_owned(), #ty) )
});
- Ok(quote! { ::serde_dhall::value::Value::make_record_type(
+ Ok(quote! { ::serde_dhall::Type::make_record_type(
vec![ #(#entries),* ].into_iter()
) })
}
@@ -89,7 +89,7 @@ fn derive_for_enum(
})
.collect::<Result<_, Error>>()?;
- Ok(quote! { ::serde_dhall::value::Value::make_union_type(
+ Ok(quote! { ::serde_dhall::Type::make_union_type(
vec![ #(#entries),* ].into_iter()
) })
}
@@ -165,7 +165,7 @@ pub fn derive_static_type_inner(
for #ident #ty_generics
#where_clause {
fn static_type() ->
- ::serde_dhall::value::Value {
+ ::serde_dhall::Type {
#(#assertions)*
#get_type
}