Skip to content

Commit

Permalink
update vart to 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq committed Feb 22, 2025
1 parent 7c07b85 commit 4c14654
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "vart"
publish = true
version = "0.9.1"
version = "0.9.2"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
Expand Down
12 changes: 4 additions & 8 deletions src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ impl<'a, P: KeyTrait + 'a, V: Clone> Iterator for Iter<'a, P, V> {
self.last_forward_key = Some(leaf.0);
if self
.last_forward_key
.zip(self.last_backward_key)
.map_or(true, |(k1, k2)| k1 < k2)
.zip(self.last_backward_key).is_none_or(|(k1, k2)| k1 < k2)
{
Some((leaf.0.as_slice(), &leaf.1.value, leaf.1.version, leaf.1.ts))
} else {
Expand Down Expand Up @@ -167,8 +166,7 @@ impl<'a, P: KeyTrait + 'a, V: Clone> DoubleEndedIterator for Iter<'a, P, V> {
self.last_backward_key = Some(leaf.0);
if self
.last_backward_key
.zip(self.last_forward_key)
.map_or(true, |(k1, k2)| k1 > k2)
.zip(self.last_forward_key).is_none_or(|(k1, k2)| k1 > k2)
{
Some((leaf.0.as_slice(), &leaf.1.value, leaf.1.version, leaf.1.ts))
} else {
Expand Down Expand Up @@ -522,8 +520,7 @@ impl<'a, K: KeyTrait + Ord, V: Clone, R: RangeBounds<K>> Iterator for Range<'a,
if self
.last_forward_key
.as_ref()
.zip(self.last_backward_key.as_ref())
.map_or(true, |(k1, k2)| k1 < k2)
.zip(self.last_backward_key.as_ref()).is_none_or(|(k1, k2)| k1 < k2)
{
Some((leaf.0.as_slice(), &leaf.1.value, leaf.1.version, leaf.1.ts))
} else {
Expand Down Expand Up @@ -587,8 +584,7 @@ impl<K: KeyTrait + Ord, V: Clone, R: RangeBounds<K>> DoubleEndedIterator for Ran
if self
.last_backward_key
.as_ref()
.zip(self.last_forward_key.as_ref())
.map_or(true, |(k1, k2)| k1 > k2)
.zip(self.last_forward_key.as_ref()).is_none_or(|(k1, k2)| k1 > k2)
{
Some((leaf.0.as_slice(), &leaf.1.value, leaf.1.version, leaf.1.ts))
} else {
Expand Down

0 comments on commit 4c14654

Please sign in to comment.