diff options
author | Nadrieril | 2019-08-13 15:25:53 +0200 |
---|---|---|
committer | Nadrieril | 2019-08-13 15:31:15 +0200 |
commit | 1ea8b10051d29c634399304273d6ee565d039bc2 (patch) | |
tree | 78750a34b6dd54f71bdff8fd835fc705a9ec2582 /dhall_proc_macros | |
parent | 74bb40e88c71b80ab785f07fd19da22404ab6e95 (diff) |
Merge `Type` and `Value` in serde_dhall
There was no point in separating them
Diffstat (limited to 'dhall_proc_macros')
-rw-r--r-- | dhall_proc_macros/src/derive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall_proc_macros/src/derive.rs b/dhall_proc_macros/src/derive.rs index 0ebfe7d..ea78766 100644 --- a/dhall_proc_macros/src/derive.rs +++ b/dhall_proc_macros/src/derive.rs @@ -53,7 +53,7 @@ fn derive_for_struct( let ty = static_type(ty); quote!( (#name.to_owned(), #ty) ) }); - Ok(quote! { ::serde_dhall::de::Type::make_record_type( + Ok(quote! { ::serde_dhall::de::Value::make_record_type( vec![ #(#entries),* ].into_iter() ) }) } @@ -90,7 +90,7 @@ fn derive_for_enum( }) .collect::<Result<_, Error>>()?; - Ok(quote! { ::serde_dhall::de::Type::make_union_type( + Ok(quote! { ::serde_dhall::de::Value::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::de::Type { + ::serde_dhall::de::Value { #(#assertions)* #get_type } |