Skip to content

Conversation

@9999years
Copy link
Contributor

warning: hiding a lifetime that's elided elsewhere is confusing
   --> src/lru_list.rs:109:17
    |
109 |     pub fn iter(&self) -> LRUListIterator<T> {
    |                 ^^^^^     ------------------ the same lifetime is hidden here
    |                 |
    |                 the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
109 |     pub fn iter(&self) -> LRUListIterator<'_, T> {
    |                                           +++

```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> src/lru_list.rs:109:17
    |
109 |     pub fn iter(&self) -> LRUListIterator<T> {
    |                 ^^^^^     ------------------ the same lifetime is hidden here
    |                 |
    |                 the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
109 |     pub fn iter(&self) -> LRUListIterator<'_, T> {
    |                                           +++
```
@jaemk jaemk merged commit 403774c into jaemk:master Nov 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants