From ec4522412089d2dfdd0dadbbcfa812a32d14a8b6 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 10 Sep 2022 13:46:14 +0800 Subject: [PATCH] Fix sync feature. --- tests/closures.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/closures.rs b/tests/closures.rs index 32d4b795..69df04e1 100644 --- a/tests/closures.rs +++ b/tests/closures.rs @@ -378,10 +378,8 @@ fn test_closures_external() -> Result<(), Box> { #[test] #[cfg(not(feature = "no_closure"))] +#[cfg(not(feature = "sync"))] fn test_closures_callback() -> Result<(), Box> { - use std::cell::RefCell; - use std::rc::Rc; - type SingleNode = Rc; trait Node {