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

Remove implicit Sized bound on Tree::range and others #1499

Open
wants to merge 1 commit into
base: project_bloodstone
Choose a base branch
from

Conversation

Rafferty97
Copy link

See issue #1497.

The type parameter K on the method Tree::range has an implicit Sized constraint, but it unnecessarily constrains the flexibility of the API. For example, it's not currently possible to call Tree::range with a range of RangeBounds<[u8]> as [u8] is not sized.

Similar reasoning applies to the other two methods of Tree that this PR adjusts in a similar fashion.

@Rafferty97 Rafferty97 changed the title #1497: Remove unnecessary Sized bound on Tree::range and others Remove implicit Sized bound on Tree::range and others Feb 11, 2024
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.

None yet

1 participant