1
Fork 0

avoid &mut on the read path since it now allows concurrent readers

This commit is contained in:
The8472 2021-02-08 23:31:49 +01:00
parent 406fd3a277
commit 2200cf10d8

View file

@ -491,7 +491,7 @@ pub unsafe fn environ() -> *mut *const *const c_char {
extern "C" { extern "C" {
static mut environ: *const *const c_char; static mut environ: *const *const c_char;
} }
&mut environ ptr::addr_of_mut!(environ)
} }
pub unsafe fn env_rwlock(readonly: bool) -> RWLockGuard { pub unsafe fn env_rwlock(readonly: bool) -> RWLockGuard {