Skip to content

uefi: change Fn closure to FnMut #1662

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

Closed
wants to merge 14 commits into from
Closed

uefi: change Fn closure to FnMut #1662

wants to merge 14 commits into from

Conversation

fox0
Copy link
Contributor

@fox0 fox0 commented May 8, 2025

Checklist

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

@phip1611
Copy link
Member

phip1611 commented May 9, 2025

Hey! Could you please briefly describe why this is necessary and what wasn't possible before that change?

@fox0
Copy link
Contributor Author

fox0 commented May 9, 2025

https://github.com/rust-osdev/uefi-rs/pull/1662/files#diff-0179d24b967f6abd18919677ac56f4a12c67939aa02c4cef42c7dfbf7be4b51bR162

error[E0594]: cannot assign to `address_acpi2`, as it is a captured variable in a `Fn` closure

@@ -51,9 +51,9 @@ pub fn uefi_revision() -> Revision {

/// Call `f` with a slice of [`ConfigTableEntry`]. Each entry provides access to
/// a vendor-specific table.
pub fn with_config_table<F, R>(f: F) -> R
pub fn with_config_table<F, R>(mut f: F) -> R
Copy link
Member

Choose a reason for hiding this comment

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

Please document these changes in the changelog

@rust-osdev rust-osdev deleted a comment May 10, 2025
@rust-osdev rust-osdev deleted a comment May 10, 2025
@rust-osdev rust-osdev deleted a comment May 10, 2025
@rust-osdev rust-osdev deleted a comment May 10, 2025
@rust-osdev rust-osdev deleted a comment May 10, 2025
@nicholasbishop
Copy link
Member

Not sure why this PR has attracted an absolute flood of spambots. I blocked a few but there are a ton of accounts spamming us.

@fox0 fox0 closed this May 11, 2025
@fox0
Copy link
Contributor Author

fox0 commented May 11, 2025

#1663

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.

3 participants