Fully qualify Result

This commit is contained in:
Noah committed 2020-10-01 18:04:11 -05:00
1 parent acd0bf5434
commit 44b3366be6
1 file changed
+2 -2
+2 -2
View File
@@ -131,7 +131,7 @@ fn generate_field(field: &Field) -> Result<TokenStream2, Diagnostic> {
if let Some(name) = name {
if name.to_string().starts_with("_phantom") {
return Ok(quote! {
#name: std::marker::PhantomData,
#name: ::std::marker::PhantomData,
});
}
}
@@ -205,7 +205,7 @@ pub fn impl_from_args(input: DeriveInput) -> Result<TokenStream2, Diagnostic> {
fn from_args(
vm: &::rustpython_vm::VirtualMachine,
args: &mut ::rustpython_vm::function::PyFuncArgs
) -> Result<Self, ::rustpython_vm::function::ArgumentError> {
) -> ::std::result::Result<Self, ::rustpython_vm::function::ArgumentError> {
Ok(#name { #fields })
}
}