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

fix: remove unnecessary cfg and import #424

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

giladchase
Copy link
Collaborator

@giladchase giladchase commented Jul 9, 2024

  • cfg seemed to be a combo of a logical merge conflict and legacy code. Anyway, the whole test is conditionally compiled so adding cfg(test) is basically a nop.
    Also there is no testing feature in this crate :P

  • Import self is only necessary when other imports from the crate are needed.


This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.46%. Comparing base (069d3cb) to head (b0ec228).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #424      +/-   ##
==========================================
- Coverage   83.68%   83.46%   -0.22%     
==========================================
  Files          37       37              
  Lines        1710     1718       +8     
  Branches     1710     1718       +8     
==========================================
+ Hits         1431     1434       +3     
- Misses        202      206       +4     
- Partials       77       78       +1     

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

@giladchase giladchase force-pushed the gilad/config-test-fix branch from 6d466e3 to 2e5664e Compare July 10, 2024 07:16
- cfg seemed to be a combo of a logical merge conflict and legacy code.
Anyway, the whole test is conditionally compiled so adding cfg(test)
is basically a nop.
Also there is no `testing` feature in this crate :P

- Import `self` is only necessary when other imports from the crate are
  needed.
@giladchase giladchase force-pushed the gilad/config-test-fix branch from 2e5664e to b0ec228 Compare July 10, 2024 07:27
@giladchase giladchase changed the title fix: Remove unnecessary cfg and import fix: remove unnecessary cfg and import Jul 10, 2024
Copy link
Contributor

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @uriel-starkware)

@giladchase giladchase merged commit 7c08d83 into main Jul 11, 2024
12 of 13 checks passed
@giladchase giladchase deleted the gilad/config-test-fix branch July 11, 2024 11:31
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