Correctly test that MeasureFunc is Send and Sync (#159)
Semántico sayk'uy · 2
src/node.rs
- silq'uyninpi t'ikrakurqan fn is_send_and_sync
- ukhunpi t'ikrakurqan fn measure_func_is_send_and_sync
1 qillqakuna · +1 −1
- src/node.rs +1 −1
diff --git a/src/node.rs b/src/node.rs
index c5429f6ae..ac40a4e2e 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -334,7 +334,7 @@ mod tests {
#[test]
fn measure_func_is_send_and_sync() {
- fn is_send_and_sync<T: Sync>() {}
+ fn is_send_and_sync<T: Send + Sync>() {}
is_send_and_sync::<MeasureFunc>();
}
}