From d9875ff81c58da903a8072b372fc44028d466824 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 26 Jun 2022 17:14:10 +0800 Subject: [PATCH] Fix sync feature. --- src/types/dynamic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/dynamic.rs b/src/types/dynamic.rs index 9740d7ba..1336551b 100644 --- a/src/types/dynamic.rs +++ b/src/types/dynamic.rs @@ -1323,6 +1323,7 @@ impl Dynamic { #[cfg(not(feature = "no_closure"))] Union::Shared(cell, ..) => crate::func::shared_try_take(cell).map_or_else( |ref cell| locked_read(cell).clone(), + #[cfg(not(feature = "sync"))] |value| value.into_inner(), #[cfg(feature = "sync")] |value| value.into_inner().unwrap(),