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

Relax needless bounds #21

Merged
merged 2 commits into from
Feb 4, 2024
Merged

Relax needless bounds #21

merged 2 commits into from
Feb 4, 2024

Conversation

Maneren
Copy link
Contributor

@Maneren Maneren commented Feb 4, 2024

All of the Ord bounds here are not needed, since there are no comparisons used.

Copy link

codecov bot commented Feb 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c157f49) 97.83% compared to head (d9afbd5) 97.83%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files           2        2           
  Lines         323      323           
=======================================
  Hits          316      316           
  Misses          7        7           

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

@MitchellBerend
Copy link
Owner

Thanks for this pr as well, I also removed all the Clone bounds from the DefaultBTreeMap since that suffers from the same issue.

Can you rebase master as well?

@Maneren
Copy link
Contributor Author

Maneren commented Feb 4, 2024

Rebased.

Also while working on this, I noticed that the IntoIterator can be simplified by just calling self._inner.into_iter(), which would also remove the Clone bound as well. I will send another PR.

@MitchellBerend MitchellBerend merged commit 23b4b72 into MitchellBerend:master Feb 4, 2024
7 checks passed
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