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

fix: explicitly set the named lifetime to static #895

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

irbull
Copy link
Contributor

@irbull irbull commented Sep 5, 2024

Due to a change in Rust nightly, the Rust linter now warns when an elided lifetime ends up being a named lifetime [1]. In this case, the elided lifetime is 'static, so we should explicitly set the lifetime to 'static.

[1] rust-lang/rust#129207

Due to a change in Rust nightly, the Rust linter now warns when an
elided lifetime ends up being a named lifetime [1]. In this case, the
elided lifetime is `'static`, so we should explicitly set the named
lifetime to `'static`.

[1] rust-lang/rust#129207
@CLAassistant
Copy link

CLAassistant commented Sep 5, 2024

CLA assistant check
All committers have signed the CLA.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.90%. Comparing base (0c7f83e) to head (69b1690).
Report is 113 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #895      +/-   ##
==========================================
+ Coverage   81.43%   81.90%   +0.46%     
==========================================
  Files          97       98       +1     
  Lines       23877    24929    +1052     
==========================================
+ Hits        19445    20417     +972     
- Misses       4432     4512      +80     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

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

Sweet, thanks!

@marvinhagemeister marvinhagemeister merged commit ab166bb into denoland:main Sep 6, 2024
18 checks passed
kuruk-mm pushed a commit to dclexplorer/deno_core that referenced this pull request Oct 11, 2024
Due to a change in Rust nightly, the Rust linter now warns when an
elided lifetime ends up being a named lifetime [1]. In this case, the
elided lifetime is `'static`, so we should explicitly set the lifetime
to `'static`.

[1] rust-lang/rust#129207
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.

4 participants