Skip to content

Commit a73eb8c

Browse files
committed
minor fixups
1 parent 8d9befa commit a73eb8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

amadeus-core/src/par_sink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use super::par_pipe::*;
2121
use crate::{pipe::Sink, pool::ProcessSend};
2222

2323
pub use self::{
24-
all::*, any::*, collect::*, combine::*, combiner::*, count::*, fold::*, folder::*, for_each::*, fork::*, group_by::*, histogram::*, max::*, pipe::*, sample::*, sum::*, tuple::*
24+
all::*, any::*, collect::*, combine::*, combiner::*, count::*, fold::*, folder::*, for_each::*, fork::*, group_by::*, histogram::*, max::*, pipe::*, sample::*, stats::*, sum::*, tuple::*
2525
};
2626

2727
#[must_use]

amadeus-core/src/par_sink/folder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ where
8585
F: FolderSync<Item>,
8686
{
8787
type Done = F::Done;
88-
type Async = FolderSyncReducerAsync<Item, F, F::Done>;
88+
type Async = FolderSyncReducerAsync<Item, F, F::State>;
8989

9090
fn into_async(mut self) -> Self::Async {
9191
FolderSyncReducerAsync {
@@ -116,7 +116,7 @@ pub struct FolderSyncReducerAsync<Item, F, S> {
116116
folder: F,
117117
marker: PhantomData<fn() -> Item>,
118118
}
119-
impl<Item, F> Sink<Item> for FolderSyncReducerAsync<Item, F, F::Done>
119+
impl<Item, F> Sink<Item> for FolderSyncReducerAsync<Item, F, F::State>
120120
where
121121
F: FolderSync<Item>,
122122
{
@@ -132,6 +132,6 @@ where
132132
while let Some(item) = ready!(stream.as_mut().poll_next(cx)) {
133133
folder.push(state, item);
134134
}
135-
Poll::Ready(self_.state.take().unwrap())
135+
Poll::Ready(folder.done(self_.state.take().unwrap()))
136136
}
137137
}

0 commit comments

Comments
 (0)