Skip to content

Conversation

@febo
Copy link
Collaborator

@febo febo commented Oct 5, 2024

This PR improves the Rust idiom of unchecked methods on the AccountInfo type by moving the unchecked keyword to the end of the method name.

  • unchecked_borrow_lamports -> borrow_lamports_unchecked
  • unchecked_borrow_mut_lamports -> borrow_mut_lamports_unchecked
  • unchecked_borrow_data -> borrow_data_unchecked
  • unchecked_borrow_mut_data -> borrow_mut_data_unchecked

Note

This is a breaking change.

@febo febo merged commit 55f377e into main Oct 5, 2024
3 checks passed
@febo febo deleted the unchecked branch October 5, 2024 00:10
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.

2 participants