Skip to content

Conversation

@wangzhen11aaa
Copy link
Contributor

Hi,
I have thought life anotation for a while, when to add and when not. As a result, I did not have a clean rule to make this decision, while, I think that for iter method, It is good to add the life anonation. What do you think, Expect your answer.

@skyzh
Copy link
Owner

skyzh commented Feb 9, 2022

There should be no difference. The lifetime elision rule helps us write fewer explicit lifetimes.

@wangzhen11aaa
Copy link
Contributor Author

wangzhen11aaa commented Feb 9, 2022

There should be no difference. The lifetime elision rule helps us write fewer explicit lifetimes.
Do you have some rule to write some code that makes the cargo clippy happy?

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