Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uefi: Fix return value lifetime for register_protocol_notify#1228

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

nicholasbishop
Copy link
Member

Due to the rules of lifetime elision
(https://doc.rust-lang.org/reference/lifetime-elision.html), the lifetime of theSearchType returned fromregister_protocol_notify was infered to be the lifetime ofSelf. The correct lifetime is theprotocol reference.

In practice this isn't likely to matter much to users, but I noticed it due to a compilation error when working on#893

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See theRewriting History guide for help.
  • Update the changelog (if necessary)

Due to the rules of lifetime elision(https://doc.rust-lang.org/reference/lifetime-elision.html), the lifetime of the`SearchType` returned from `register_protocol_notify` was infered to be thelifetime of `Self`. The correct lifetime is the `protocol` reference.
@phip1611phip1611 added this pull request to themerge queueJul 8, 2024
@phip1611
Copy link
Member

Good catch!

Merged via the queue intorust-osdev:main with commitc80c232Jul 8, 2024
12 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@nicholasbishop@phip1611

[8]ページ先頭

©2009-2025 Movatter.jp