From a6a039641514d6b45bdbf99ff41f77d4769f2918 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Tue, 19 Mar 2024 15:06:57 -0400 Subject: [PATCH] Compatibility with latest timely Signed-off-by: Moritz Hoffmann --- src/collection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collection.rs b/src/collection.rs index f2daf8ad4..aeb6aad38 100644 --- a/src/collection.rs +++ b/src/collection.rs @@ -416,10 +416,10 @@ impl Collection where G::Timestamp: Da /// .inspect_batch(|t,xs| println!("errors @ {:?}: {:?}", t, xs)); /// }); /// ``` - pub fn inspect_batch(&self, func: F) -> Collection + pub fn inspect_batch(&self, mut func: F) -> Collection where F: FnMut(&G::Timestamp, &[(D, G::Timestamp, R)])+'static { self.inner - .inspect_batch(func) + .inspect_batch(move |time, data| func(time, data)) .as_collection() } /// Attaches a timely dataflow probe to the output of a Collection.