@@ -34,7 +34,7 @@ use predicates::str::PredicateStrExt;
34
34
use predicates_core;
35
35
use predicates_tree:: CaseTreeExt ;
36
36
37
- use fixture;
37
+ use crate :: fixture;
38
38
39
39
/// Assert the state of files within [`TempDir`].
40
40
///
@@ -240,12 +240,12 @@ impl BytesContentPathPredicate {
240
240
impl predicates_core:: reflection:: PredicateReflection for BytesContentPathPredicate {
241
241
fn parameters < ' a > (
242
242
& ' a self ,
243
- ) -> Box < Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
243
+ ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
244
244
self . 0 . parameters ( )
245
245
}
246
246
247
247
/// Nested `Predicate`s of the current `Predicate`.
248
- fn children < ' a > ( & ' a self ) -> Box < Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
248
+ fn children < ' a > ( & ' a self ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
249
249
self . 0 . children ( )
250
250
}
251
251
}
@@ -265,7 +265,7 @@ impl predicates_core::Predicate<path::Path> for BytesContentPathPredicate {
265
265
}
266
266
267
267
impl fmt:: Display for BytesContentPathPredicate {
268
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
268
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
269
269
self . 0 . fmt ( f)
270
270
}
271
271
}
@@ -316,12 +316,12 @@ impl StrContentPathPredicate {
316
316
impl predicates_core:: reflection:: PredicateReflection for StrContentPathPredicate {
317
317
fn parameters < ' a > (
318
318
& ' a self ,
319
- ) -> Box < Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
319
+ ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
320
320
self . 0 . parameters ( )
321
321
}
322
322
323
323
/// Nested `Predicate`s of the current `Predicate`.
324
- fn children < ' a > ( & ' a self ) -> Box < Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
324
+ fn children < ' a > ( & ' a self ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
325
325
self . 0 . children ( )
326
326
}
327
327
}
@@ -341,7 +341,7 @@ impl predicates_core::Predicate<path::Path> for StrContentPathPredicate {
341
341
}
342
342
343
343
impl fmt:: Display for StrContentPathPredicate {
344
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
344
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
345
345
self . 0 . fmt ( f)
346
346
}
347
347
}
@@ -400,12 +400,12 @@ where
400
400
{
401
401
fn parameters < ' a > (
402
402
& ' a self ,
403
- ) -> Box < Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
403
+ ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Parameter < ' a > > + ' a > {
404
404
self . 0 . parameters ( )
405
405
}
406
406
407
407
/// Nested `Predicate`s of the current `Predicate`.
408
- fn children < ' a > ( & ' a self ) -> Box < Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
408
+ fn children < ' a > ( & ' a self ) -> Box < dyn Iterator < Item = predicates_core:: reflection:: Child < ' a > > + ' a > {
409
409
self . 0 . children ( )
410
410
}
411
411
}
@@ -431,7 +431,7 @@ impl<P> fmt::Display for StrPathPredicate<P>
431
431
where
432
432
P : predicates_core:: Predicate < str > ,
433
433
{
434
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
434
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
435
435
self . 0 . fmt ( f)
436
436
}
437
437
}
0 commit comments