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

Add comment about using static lifetime for SocketSets with owned storage #813

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

paulmenage
Copy link
Contributor

It wasn't obvious to me that 'static can/should be the lifetime to use with a SocketSet if you're not borrowing storage; adding a comment will hopefully save others a little time fighting with lifetime-creep and interactions with thread constraints (thread closures can only borrow 'static data).

@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #813 (6e47c7b) into main (7ff1364) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #813   +/-   ##
=======================================
  Coverage   79.65%   79.65%           
=======================================
  Files          72       72           
  Lines       27862    27862           
=======================================
  Hits        22193    22193           
  Misses       5669     5669           
Impacted Files Coverage Δ
src/iface/socket_set.rs 55.88% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

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

Thanks!

@Dirbaio Dirbaio enabled auto-merge July 8, 2023 16:00
@Dirbaio Dirbaio added this pull request to the merge queue Jul 8, 2023
Merged via the queue into smoltcp-rs:main with commit f9b064a Jul 8, 2023
aramperes added a commit to aramperes/onetun that referenced this pull request Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants