Skip to content

Commit b499ea2

Browse files
Update timely/src/dataflow/operators/capability.rs
Co-authored-by: Moritz Hoffmann <[email protected]>
1 parent 1e36335 commit b499ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timely/src/dataflow/operators/capability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl<T: Timestamp> CapabilityTrait<T> for InputCapability<T> {
250250
let internal_borrow = self.internal.borrow();
251251
// To be valid, the output buffer must match and the timestamp summary needs to be the default.
252252
Rc::ptr_eq(&internal_borrow[port], query_buffer) &&
253-
summaries_borrow.get(port).map(|path| path.len() == 1 && path[0] == Default::default()).unwrap_or(false)
253+
summaries_borrow.get(port).map_or(false, |path| path.elements() == [Default::default()])
254254
}
255255
}
256256

0 commit comments

Comments
 (0)