Fix builds.

This commit is contained in:
Stephen Chung
2022-11-23 18:02:10 +08:00
parent 02ef119603
commit 46514bbc85
4 changed files with 24 additions and 20 deletions

View File

@@ -1409,9 +1409,9 @@ impl Dynamic {
*self = crate::func::shared_try_take(cell).map_or_else(
|ref cell| crate::func::locked_read(cell).clone(),
#[cfg(not(feature = "sync"))]
crate::Locked::into_inner,
|value| value.into_inner(),
#[cfg(feature = "sync")]
crate::Locked::into_inner().unwrap(),
|value| value.into_inner().unwrap(),
);
}
_ => (),