xso-proc: Use core instead of std wherever possible

This commit is contained in:
Emmanuel Gil Peyrot 2024-08-03 17:23:14 +02:00 committed by Link Mauve
commit 1828fde78c
7 changed files with 43 additions and 43 deletions

View file

@ -622,7 +622,7 @@ impl FieldDef {
Ok(FieldBuilderPart::Nested {
extra_defs,
value: FieldTempInit {
init: quote! { ::std::option::Option::None },
init: quote! { ::core::option::Option::None },
ty: option_ty(self.ty.clone()),
},
matcher: quote! {
@ -637,12 +637,12 @@ impl FieldDef {
},
builder,
collect: quote! {
#field_access = ::std::option::Option::Some(#fetch);
#field_access = ::core::option::Option::Some(#fetch);
},
finalize: quote! {
match #field_access {
::std::option::Option::Some(value) => value,
::std::option::Option::None => #on_absent,
::core::option::Option::Some(value) => value,
::core::option::Option::None => #on_absent,
}
},
})