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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ impl<const LEAF_FANOUT: usize> Tree<LEAF_FANOUT> {

pub fn range<K, R>(&self, range: R) -> Iter<LEAF_FANOUT>
where
K: AsRef<[u8]>,
K: AsRef<[u8]> + ?Sized,
R: RangeBounds<K>,
{
let start: Bound<InlineArray> =
Expand Down Expand Up @@ -1711,7 +1711,7 @@ impl<const LEAF_FANOUT: usize> Tree<LEAF_FANOUT> {
range: R,
) -> io::Result<Option<(InlineArray, InlineArray)>>
where
K: AsRef<[u8]>,
K: AsRef<[u8]> + ?Sized,
R: Clone + RangeBounds<K>,
{
loop {
Expand Down Expand Up @@ -1820,7 +1820,7 @@ impl<const LEAF_FANOUT: usize> Tree<LEAF_FANOUT> {
range: R,
) -> io::Result<Option<(InlineArray, InlineArray)>>
where
K: AsRef<[u8]>,
K: AsRef<[u8]> + ?Sized,
R: Clone + RangeBounds<K>,
{
loop {
Expand Down