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

some refactoring #574

Merged
merged 14 commits into from
May 13, 2024
Merged

some refactoring #574

merged 14 commits into from
May 13, 2024

Conversation

tcoratger
Copy link
Collaborator

Small refactorings are made on the following points:

  • When possible, arguments around collect are avoided because they are inferred automatically.
  • Felt::from(1) is replaced by the dedicated constant Felt::ONE
  • Felt::from(0) is replaced by the dedicated constant Felt::ZERO

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

@codecov-commenter
Copy link

codecov-commenter commented May 7, 2024

Codecov Report

Attention: Patch coverage is 96.96970% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 87.82%. Comparing base (ddfd282) to head (885a77a).

Files Patch % Lines
src/utils.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #574   +/-   ##
=======================================
  Coverage   87.82%   87.82%           
=======================================
  Files         109      109           
  Lines       34621    34621           
=======================================
  Hits        30406    30406           
  Misses       4215     4215           

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

src/debug_info.rs Outdated Show resolved Hide resolved
juanbono
juanbono previously approved these changes May 8, 2024
Copy link
Collaborator

@pefontana pefontana 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 the contribution @tcoratger !
If you restore the deleted types we can merge it!

benches/util.rs Outdated Show resolved Hide resolved
src/compiler.rs Outdated Show resolved Hide resolved
src/debug_info.rs Outdated Show resolved Hide resolved
src/debug_info.rs Outdated Show resolved Hide resolved
benches/util.rs Outdated Show resolved Hide resolved
src/compiler.rs Outdated Show resolved Hide resolved
src/compiler.rs Outdated Show resolved Hide resolved
src/compiler.rs Outdated Show resolved Hide resolved
src/debug_info.rs Outdated Show resolved Hide resolved
src/debug_info.rs Outdated Show resolved Hide resolved
src/debug_info.rs Outdated Show resolved Hide resolved
src/libfuncs/enum.rs Outdated Show resolved Hide resolved
src/libfuncs/enum.rs Outdated Show resolved Hide resolved
@tcoratger
Copy link
Collaborator Author

Thanks for the contribution @tcoratger ! If you restore the deleted types we can merge it!

Done

@tcoratger tcoratger changed the title refactor around collect instructions some refactoring May 8, 2024
@pefontana pefontana enabled auto-merge May 13, 2024 15:16
@pefontana pefontana added this pull request to the merge queue May 13, 2024
Merged via the queue into lambdaclass:main with commit 93c5bb4 May 13, 2024
9 checks passed
Gerson2102 pushed a commit to Gerson2102/cairo_native that referenced this pull request May 15, 2024
* refactor collect instructions

* Update src/libfuncs/enum.rs

* Update benches/util.rs

* Update src/compiler.rs

* Update src/compiler.rs

* Update src/compiler.rs

* Update src/debug_info.rs

* Update src/debug_info.rs

* Update src/debug_info.rs

* Update src/libfuncs/enum.rs

* update

---------

Co-authored-by: Pedro Fontana <fontana.pedro93@gmail.com>
Co-authored-by: Edgar <git@edgarluque.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants