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

Use Option::insert() #729

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Use Option::insert() #729

merged 1 commit into from
Apr 23, 2024

Conversation

dani-garcia
Copy link
Member

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Just discovered that Option::insert is a thing, which simplifies some code that first sets the value and then immediately returns a reference to it.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details5aa6917e-93d5-4f6a-a5c5-de4efede9ce5

No New Or Fixed Issues Found

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.88%. Comparing base (dc4ad16) to head (9612e90).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #729      +/-   ##
==========================================
- Coverage   60.90%   60.88%   -0.02%     
==========================================
  Files         173      173              
  Lines       10694    10689       -5     
==========================================
- Hits         6513     6508       -5     
  Misses       4181     4181              

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

@dani-garcia dani-garcia marked this pull request as ready for review April 23, 2024 09:59
@dani-garcia dani-garcia requested a review from Hinton April 23, 2024 09:59
@dani-garcia dani-garcia merged commit ee463ec into main Apr 23, 2024
75 of 76 checks passed
@dani-garcia dani-garcia deleted the ps/use-option-insert branch April 23, 2024 13:26
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