File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ impl<O: IsA<DBusProxy>> DBusProxyExtManual for O {
45
45
let f: & F = & * ( f as * const F ) ;
46
46
f (
47
47
DBusProxy :: from_glib_borrow ( this) . unsafe_cast_ref ( ) ,
48
- Option :: < glib:: GString > :: from_glib_borrow ( sender_name)
48
+ ( * Option :: < glib:: GString > :: from_glib_borrow ( sender_name) )
49
49
. as_ref ( )
50
- . as_deref ( ) ,
50
+ . map ( |s| s . as_str ( ) ) ,
51
51
& glib:: GString :: from_glib_borrow ( signal_name) ,
52
52
& from_glib_borrow ( parameters) ,
53
53
)
Original file line number Diff line number Diff line change @@ -617,10 +617,10 @@ impl AsRef<[u8]> for GString {
617
617
}
618
618
619
619
impl Deref for GString {
620
- type Target = str ;
620
+ type Target = GStr ;
621
621
622
- fn deref ( & self ) -> & str {
623
- self . as_str ( )
622
+ fn deref ( & self ) -> & GStr {
623
+ self . as_gstr ( )
624
624
}
625
625
}
626
626
You can’t perform that action at this time.
0 commit comments