File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ impl ZendHashTable {
534
534
/// }
535
535
#[ inline]
536
536
#[ must_use]
537
- pub fn values ( & self ) -> Values {
537
+ pub fn values ( & self ) -> Values < ' _ > {
538
538
Values :: new ( self )
539
539
}
540
540
@@ -559,7 +559,7 @@ impl ZendHashTable {
559
559
/// }
560
560
#[ inline]
561
561
#[ must_use]
562
- pub fn iter ( & self ) -> Iter {
562
+ pub fn iter ( & self ) -> Iter < ' _ > {
563
563
self . into_iter ( )
564
564
}
565
565
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ impl Iterable<'_> {
19
19
/// May return None if a Traversable cannot be rewound.
20
20
// TODO: Check iter not returning iterator
21
21
#[ allow( clippy:: iter_not_returning_iterator) ]
22
- pub fn iter ( & mut self ) -> Option < Iter > {
22
+ pub fn iter ( & mut self ) -> Option < Iter < ' _ > > {
23
23
match self {
24
24
Iterable :: Array ( array) => Some ( Iter :: Array ( array. iter ( ) ) ) ,
25
25
Iterable :: Traversable ( traversable) => Some ( Iter :: Traversable ( traversable. iter ( ) ?) ) ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl ZendIterator {
23
23
/// iterator cannot be rewound.
24
24
// TODO: Check iter not returning iterator
25
25
#[ allow( clippy:: iter_not_returning_iterator) ]
26
- pub fn iter ( & mut self ) -> Option < Iter > {
26
+ pub fn iter ( & mut self ) -> Option < Iter < ' _ > > {
27
27
self . index = 0 ;
28
28
29
29
if self . rewind ( ) {
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ impl Zval {
291
291
292
292
/// Returns the value of the zval if it is callable.
293
293
#[ must_use]
294
- pub fn callable ( & self ) -> Option < ZendCallable > {
294
+ pub fn callable ( & self ) -> Option < ZendCallable < ' _ > > {
295
295
// The Zval is checked if it is callable in the `new` function.
296
296
ZendCallable :: new ( self ) . ok ( )
297
297
}
@@ -309,7 +309,7 @@ impl Zval {
309
309
/// Returns an iterable over the zval if it is an array or traversable. (is
310
310
/// iterable)
311
311
#[ must_use]
312
- pub fn iterable ( & self ) -> Option < Iterable > {
312
+ pub fn iterable ( & self ) -> Option < Iterable < ' _ > > {
313
313
if self . is_iterable ( ) {
314
314
Iterable :: from_zval ( self )
315
315
} else {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pub type ZendLinkedList = zend_llist;
8
8
impl ZendLinkedList {
9
9
/// Create an iterator over the linked list
10
10
#[ must_use]
11
- pub fn iter < T > ( & self ) -> ZendLinkedListIterator < T > {
11
+ pub fn iter < T > ( & self ) -> ZendLinkedListIterator < ' _ , T > {
12
12
ZendLinkedListIterator :: new ( self )
13
13
}
14
14
}
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl StreamWrapper {
41
41
42
42
/// Get mutable wrapped stream by name
43
43
#[ must_use]
44
+ #[ allow( clippy:: mut_from_ref) ]
44
45
pub fn get_mut ( name : & str ) -> Option < & mut Self > {
45
46
unsafe {
46
47
let result = php_stream_locate_url_wrapper ( name. as_ptr ( ) . cast ( ) , ptr:: null_mut ( ) , 0 ) ;
You can’t perform that action at this time.
0 commit comments