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

borrow_mut -> borrow in two places #31399

Merged
merged 1 commit into from May 5, 2023
Merged

borrow_mut -> borrow in two places #31399

merged 1 commit into from May 5, 2023

Conversation

smoelius
Copy link
Contributor

Problem

In two places in programs/sbf/rust/invoke/src/processor.rs, RefCell::borrow_mut is used where RefCell::borrow could be used instead.

Summary of Changes

The two calls were changed to RefCell::borrow.

Found with a Dylint lint, if interested.

@mergify mergify bot added community Community contribution need:merge-assist labels Apr 28, 2023
@mergify mergify bot requested a review from a team April 28, 2023 17:38
@joncinque joncinque added the CI Pull Request is ready to enter CI label May 5, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label May 5, 2023
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #31399 (d98d640) into master (e79b84e) will increase coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #31399   +/-   ##
=======================================
  Coverage    81.5%    81.5%           
=======================================
  Files         731      731           
  Lines      207361   207361           
=======================================
+ Hits       169000   169023   +23     
+ Misses      38361    38338   -23     

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@joncinque joncinque merged commit e4d1fcb into solana-labs:master May 5, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants