@@ -525,7 +525,7 @@ fn expand_wrapper_getset_properties(props: &[PropDesc]) -> TokenStream2 {
525
525
let ident = format_ident ! ( "set_{}" , ident) ;
526
526
let target_ty = quote ! ( <<#ty as #crate_ident:: Property >:: Value as #crate_ident:: HasParamSpec >:: SetValue ) ;
527
527
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>>)
529
529
} else {
530
530
quote ! ( impl std:: borrow:: Borrow <#target_ty>)
531
531
} ;
@@ -558,7 +558,7 @@ fn expand_wrapper_connect_prop_notify(props: &[PropDesc]) -> TokenStream2 {
558
558
let fn_ident = format_ident ! ( "connect_{}_notify" , name_to_ident( name) ) ;
559
559
let span = p. attrs_span ;
560
560
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, _| {
562
562
f( this)
563
563
} )
564
564
} )
@@ -619,10 +619,10 @@ fn expand_properties_enum(props: &[PropDesc]) -> TokenStream2 {
619
619
impl std:: convert:: TryFrom <usize > for DerivedPropertiesEnum {
620
620
type Error = usize ;
621
621
622
- fn try_from( item: usize ) -> Result <Self , Self :: Error > {
622
+ fn try_from( item: usize ) -> :: core :: result :: Result <Self , Self :: Error > {
623
623
match item {
624
- #( #indices => Ok ( Self :: #properties) , ) *
625
- _ => Err ( item)
624
+ #( #indices => :: core :: result :: Result :: Ok ( Self :: #properties) , ) *
625
+ _ => :: core :: result :: Result :: Err ( item)
626
626
}
627
627
}
628
628
}
0 commit comments