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

Implement AddAssign for ExecutionResources and fix union #914

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

Oppen
Copy link
Contributor

@Oppen Oppen commented Mar 20, 2023

Support the += operator for ExecutionResources.
It also avoids requiring ownership in Add and fixes a bug where it would take the intersection rather than the union.

Copy link
Contributor

@fmoletta fmoletta left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

can you also change it for the rest of the operations? (Mul, Add, Sub)

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Merging #914 (a37871e) into main (07e0c3f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #914      +/-   ##
==========================================
- Coverage   97.41%   97.41%   -0.01%     
==========================================
  Files          70       70              
  Lines       29740    29733       -7     
==========================================
- Hits        28971    28964       -7     
  Misses        769      769              
Impacted Files Coverage Δ
src/vm/runners/cairo_runner.rs 97.70% <100.00%> (-0.01%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

LGTM. It would be nice to avoid moving self on all the operations

@Oppen Oppen added this pull request to the merge queue Mar 20, 2023
@Oppen Oppen merged commit aa7cf92 into main Mar 20, 2023
@Oppen Oppen deleted the add_assign_exec_resources branch March 20, 2023 20:15
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