mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-16 13:42:05 +00:00
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:
parent
e468a98333
commit
910994f982
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user