@@ -525,7 +525,7 @@ fn expand_wrapper_getset_properties(props: &[PropDesc]) -> TokenStream2 {
525525 let ident = format_ident ! ( "set_{}" , ident) ;
526526 let target_ty = quote ! ( <<#ty as #crate_ident:: Property >:: Value as #crate_ident:: HasParamSpec >:: SetValue ) ;
527527 let set_ty = if p. nullable {
528- quote ! ( Option <impl std:: borrow:: Borrow <#target_ty>>)
528+ quote ! ( :: core :: option :: Option <impl std:: borrow:: Borrow <#target_ty>>)
529529 } else {
530530 quote ! ( impl std:: borrow:: Borrow <#target_ty>)
531531 } ;
@@ -558,7 +558,7 @@ fn expand_wrapper_connect_prop_notify(props: &[PropDesc]) -> TokenStream2 {
558558 let fn_ident = format_ident ! ( "connect_{}_notify" , name_to_ident( name) ) ;
559559 let span = p. attrs_span ;
560560 quote_spanned ! ( span=> pub fn #fn_ident<F : Fn ( & Self ) + ' static >( & self , f: F ) -> #crate_ident:: SignalHandlerId {
561- self . connect_notify_local( Some ( #name) , move |this, _| {
561+ self . connect_notify_local( :: core :: option :: Option :: Some ( #name) , move |this, _| {
562562 f( this)
563563 } )
564564 } )
@@ -619,10 +619,10 @@ fn expand_properties_enum(props: &[PropDesc]) -> TokenStream2 {
619619 impl std:: convert:: TryFrom <usize > for DerivedPropertiesEnum {
620620 type Error = usize ;
621621
622- fn try_from( item: usize ) -> Result <Self , Self :: Error > {
622+ fn try_from( item: usize ) -> :: core :: result :: Result <Self , Self :: Error > {
623623 match item {
624- #( #indices => Ok ( Self :: #properties) , ) *
625- _ => Err ( item)
624+ #( #indices => :: core :: result :: Result :: Ok ( Self :: #properties) , ) *
625+ _ => :: core :: result :: Result :: Err ( item)
626626 }
627627 }
628628 }
0 commit comments