Skip to content

Commit 44b3366

Browse files
committed
Fully qualify Result
1 parent acd0bf5 commit 44b3366

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

derive/src/from_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn generate_field(field: &Field) -> Result<TokenStream2, Diagnostic> {
131131
if let Some(name) = name {
132132
if name.to_string().starts_with("_phantom") {
133133
return Ok(quote! {
134-
#name: std::marker::PhantomData,
134+
#name: ::std::marker::PhantomData,
135135
});
136136
}
137137
}
@@ -205,7 +205,7 @@ pub fn impl_from_args(input: DeriveInput) -> Result<TokenStream2, Diagnostic> {
205205
fn from_args(
206206
vm: &::rustpython_vm::VirtualMachine,
207207
args: &mut ::rustpython_vm::function::PyFuncArgs
208-
) -> Result<Self, ::rustpython_vm::function::ArgumentError> {
208+
) -> ::std::result::Result<Self, ::rustpython_vm::function::ArgumentError> {
209209
Ok(#name { #fields })
210210
}
211211
}

0 commit comments

Comments
 (0)