@@ -174,12 +174,12 @@ impl BluetoothDevice {
174174 let device: Gd < BluetoothDevice > = res. cast ( ) ;
175175 device
176176 } else {
177- let mut device = BluetoothDevice :: from_path ( path. to_string ( ) . into ( ) ) ;
177+ let mut device = BluetoothDevice :: from_path ( path. into ( ) ) ;
178178 device. take_over_path ( res_path. as_str ( ) ) ;
179179 device
180180 }
181181 } else {
182- let mut device = BluetoothDevice :: from_path ( path. to_string ( ) . into ( ) ) ;
182+ let mut device = BluetoothDevice :: from_path ( path. into ( ) ) ;
183183 device. take_over_path ( res_path. as_str ( ) ) ;
184184 device
185185 }
@@ -324,15 +324,15 @@ impl BluetoothDevice {
324324 let Some ( proxy) = self . proxy . as_ref ( ) else {
325325 return Default :: default ( ) ;
326326 } ;
327- proxy. name ( ) . unwrap_or_default ( ) . into ( )
327+ proxy. name ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
328328 }
329329
330330 #[ func]
331331 pub fn get_modalias ( & self ) -> GString {
332332 let Some ( proxy) = self . proxy . as_ref ( ) else {
333333 return Default :: default ( ) ;
334334 } ;
335- proxy. modalias ( ) . unwrap_or_default ( ) . into ( )
335+ proxy. modalias ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
336336 }
337337
338338 #[ func]
@@ -348,7 +348,7 @@ impl BluetoothDevice {
348348 let Some ( proxy) = self . proxy . as_ref ( ) else {
349349 return Default :: default ( ) ;
350350 } ;
351- proxy. icon ( ) . unwrap_or_default ( ) . into ( )
351+ proxy. icon ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
352352 }
353353
354354 #[ func]
@@ -404,7 +404,7 @@ impl BluetoothDevice {
404404 let Some ( proxy) = self . proxy . as_ref ( ) else {
405405 return Default :: default ( ) ;
406406 } ;
407- proxy. alias ( ) . unwrap_or_default ( ) . into ( )
407+ proxy. alias ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
408408 }
409409
410410 #[ func]
@@ -422,23 +422,23 @@ impl BluetoothDevice {
422422 let Some ( proxy) = self . proxy . as_ref ( ) else {
423423 return Default :: default ( ) ;
424424 } ;
425- proxy. address_type ( ) . unwrap_or_default ( ) . into ( )
425+ proxy. address_type ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
426426 }
427427
428428 #[ func]
429429 pub fn get_address ( & self ) -> GString {
430430 let Some ( proxy) = self . proxy . as_ref ( ) else {
431431 return Default :: default ( ) ;
432432 } ;
433- proxy. address ( ) . unwrap_or_default ( ) . into ( )
433+ proxy. address ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
434434 }
435435
436436 #[ func]
437437 pub fn get_adapter ( & self ) -> GString {
438438 let Some ( proxy) = self . proxy . as_ref ( ) else {
439439 return Default :: default ( ) ;
440440 } ;
441- proxy. adapter ( ) . unwrap_or_default ( ) . to_string ( ) . into ( )
441+ proxy. adapter ( ) . unwrap_or_default ( ) . as_str ( ) . into ( )
442442 }
443443
444444 /// Dispatches signals
0 commit comments