From 34ff8a9c12372307ab50b9ffc18845b2fff39a64 Mon Sep 17 00:00:00 2001 From: Alexander Rafferty Date: Sun, 11 Feb 2024 16:07:35 +1100 Subject: [PATCH] Fixes #1497: Remove unneeded `Sized` constraint from `Tree::range` and related methods. --- src/tree.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tree.rs b/src/tree.rs index 67cf18e7f..e60b921c6 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -1163,7 +1163,7 @@ impl Tree { pub fn range(&self, range: R) -> Iter where - K: AsRef<[u8]>, + K: AsRef<[u8]> + ?Sized, R: RangeBounds, { let start: Bound = @@ -1711,7 +1711,7 @@ impl Tree { range: R, ) -> io::Result> where - K: AsRef<[u8]>, + K: AsRef<[u8]> + ?Sized, R: Clone + RangeBounds, { loop { @@ -1820,7 +1820,7 @@ impl Tree { range: R, ) -> io::Result> where - K: AsRef<[u8]>, + K: AsRef<[u8]> + ?Sized, R: Clone + RangeBounds, { loop {