Skip to content

Commit

Permalink
pleasing clippy 1.76.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pchampin committed Mar 19, 2024
1 parent a4c0a01 commit 86ca1b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions api/src/source/filter_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ where
let mut buffer = VecDeque::new();
std::mem::swap(&mut self.buffer, &mut buffer);
while buffer.is_empty() && remaining {
match self.source.for_some_item(|i| {
let resb = self.source.for_some_item(|i| {
if let Some(t) = (self.filter_map)(i) {
buffer.push_back(Ok(t));
}
}) {
});
match resb {
Ok(b) => {
remaining = b;
}
Expand Down
5 changes: 3 additions & 2 deletions api/src/source/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ where
let mut buffer = VecDeque::new();
std::mem::swap(&mut self.buffer, &mut buffer);
while buffer.is_empty() && remaining {
match self.source.for_some_item(|i| {
let resb = self.source.for_some_item(|i| {
buffer.push_back(Ok((self.map)(i)));
}) {
});
match resb {
Ok(b) => {
remaining = b;
}
Expand Down

0 comments on commit 86ca1b8

Please sign in to comment.