Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly annotate lifetime of entry methods #1141

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

thynson
Copy link
Contributor

@thynson thynson commented Oct 11, 2024

The .key() and .value() should return a borrow whose lifetime aligns with the container, instead of the entry itself.

The `.key()` and `.value()` should return a borrow whose
lifetime aligns with the container, instead of the entry
itself.
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit 10f0296 into crossbeam-rs:master Oct 13, 2024
23 checks passed
@thynson
Copy link
Contributor Author

thynson commented Jan 19, 2025

Hello @taiki-e , could you ship a new release for this PR? Sorry for disturbing but sometimes it's inconvenient for us to use a custom fork.

@taiki-e
Copy link
Member

taiki-e commented Jan 19, 2025

See #1162.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants