gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5364Rust 86Markdown 12TOML 91841 Definiciones

Correctly test that MeasureFunc is Send and Sync (#159)

b4ec9dc102beb3c7e6e92cda7420b012d0d2fadd · por Alice Cecile · (hace 4 años) · padre e35eef766 · ver el árbol en este commit

Delta semántico · 2

src/node.rs

1 archivos · +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>();
     }
 }