Skip to content

Commit

Permalink
Fixes spacejam#1497: Remove unneeded Sized constraint from `Tree::r…
Browse files Browse the repository at this point in the history
…ange` and related methods.
  • Loading branch information
Rafferty97 committed Feb 11, 2024
1 parent c043a1f commit 34ff8a9
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 34ff8a9

Please sign in to comment.