gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Sutichaykuna

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

b4ec9dc102beb3c7e6e92cda7420b012d0d2fadd · ruwaq Alice Cecile · (4 wata ñawpaq) · tayta e35eef766 · kay commitpi sach'ata qhaway

Semántico sayk'uy · 2

src/node.rs

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