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

@@ -1354,6 +1354,7 @@ impl Engine {
.get_fn(hash_fn, false)
.or_else(|| self.packages.get_fn(hash_fn, false))
{
#[cfg(not(feature = "no_shared"))]
let mut lock_guard;
#[cfg(not(feature = "no_shared"))]