Skip to content

Commit

Permalink
Do an rustfmt pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Jan 19, 2021
1 parent 50e9cf7 commit 374a915
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/bitmap/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ impl Store {
(&mut Array(ref mut vec1), &Array(ref vec2)) => {
let mut i = 0;
vec1.retain(|x| {
i += vec2.iter().skip(i).position(|y| y >= x).unwrap_or(vec2.len());
i += vec2
.iter()
.skip(i)
.position(|y| y >= x)
.unwrap_or(vec2.len());
vec2.get(i).map_or(false, |y| x == y)
});
}
Expand All @@ -350,7 +354,11 @@ impl Store {
(&mut Array(ref mut vec1), &Array(ref vec2)) => {
let mut i = 0;
vec1.retain(|x| {
i += vec2.iter().skip(i).position(|y| y >= x).unwrap_or(vec2.len());
i += vec2
.iter()
.skip(i)
.position(|y| y >= x)
.unwrap_or(vec2.len());
vec2.get(i).map_or(true, |y| x != y)
});
}
Expand Down

0 comments on commit 374a915

Please sign in to comment.