Fix no_std builds.

This commit is contained in:
Stephen Chung
2020-07-31 17:26:49 +08:00
parent c8a60875ec
commit d563b878aa
3 changed files with 15 additions and 6 deletions

View File

@@ -696,6 +696,7 @@ impl Dynamic {
match self.0 {
Union::Variant(value) => (*value).as_box_any().downcast().map(|x| *x).ok(),
#[cfg(not(feature = "no_shared"))]
Union::Shared(_) => unreachable!(),
_ => None,
}