@@ -200,7 +200,7 @@ pub trait FileExtManual: Sized {
200
200
Q : FnOnce ( Result < FileEnumerator , glib:: Error > ) + ' static ,
201
201
> (
202
202
& self ,
203
- attributes : & ' static str ,
203
+ attributes : & str ,
204
204
flags : FileQueryInfoFlags ,
205
205
io_priority : glib:: Priority ,
206
206
cancellable : Option < & P > ,
@@ -209,7 +209,7 @@ pub trait FileExtManual: Sized {
209
209
210
210
fn enumerate_children_future (
211
211
& self ,
212
- attributes : & ' static str ,
212
+ attributes : & str ,
213
213
flags : FileQueryInfoFlags ,
214
214
io_priority : glib:: Priority ,
215
215
) -> Pin < Box < dyn std:: future:: Future < Output = Result < FileEnumerator , glib:: Error > > + ' static > > ;
@@ -432,7 +432,7 @@ impl<O: IsA<File>> FileExtManual for O {
432
432
Q : FnOnce ( Result < FileEnumerator , glib:: Error > ) + ' static ,
433
433
> (
434
434
& self ,
435
- attributes : & ' static str ,
435
+ attributes : & str ,
436
436
flags : FileQueryInfoFlags ,
437
437
io_priority : glib:: Priority ,
438
438
cancellable : Option < & P > ,
@@ -486,16 +486,17 @@ impl<O: IsA<File>> FileExtManual for O {
486
486
487
487
fn enumerate_children_future (
488
488
& self ,
489
- attributes : & ' static str ,
489
+ attributes : & str ,
490
490
flags : FileQueryInfoFlags ,
491
491
io_priority : glib:: Priority ,
492
492
) -> Pin < Box < dyn std:: future:: Future < Output = Result < FileEnumerator , glib:: Error > > + ' static > >
493
493
{
494
+ let attributes = attributes. to_owned ( ) ;
494
495
Box :: pin ( crate :: GioFuture :: new (
495
496
self ,
496
497
move |obj, cancellable, send| {
497
498
obj. enumerate_children_async (
498
- attributes,
499
+ & attributes,
499
500
flags,
500
501
io_priority,
501
502
Some ( cancellable) ,
0 commit comments