Replace stdenv() -> MutexGuard with with_raw_stdenv() API for enforcing exclusive access to the STDENV instance. Remove the custom StdEnv wrapper type. I think using a scoped callback is a slightly cleaner way to implement this than a StdEnv type with its weird custom Deref impl.
stdenv() -> MutexGuard
with with_raw_stdenv() API for enforcing exclusive access to the STDENV instance. Remove the custom StdEnv wrapper type. I think using a scoped callback is a slightly cleaner way to implement this than a StdEnv type with its weird custom Deref impl.