Fix Result namespacing in FromFormField derive.

Previously, if a module used or defined a type alias for Result,
FromFormField derives would fail to compile as it would use the type
alias instead of the fully qualified type.
This commit is contained in:
Jason Hinch 2023-01-30 12:54:44 +11:00 committed by Sergio Benitez
parent e468a98333
commit 910994f982

View File

@ -47,7 +47,7 @@ pub fn derive_from_form_field(input: proc_macro::TokenStream) -> TokenStream {
.with_output(|_, output| quote! {
fn from_value(
__f: #_form::ValueField<'__v>
) -> Result<Self, #_form::Errors<'__v>> {
) -> #_Result<Self, #_form::Errors<'__v>> {
#output
}