std: vec::to_ptr -> vec::unsafe::to_ptr
This commit is contained in:
parent
d3a0f7e9fc
commit
77fc4e7ee7
|
@ -66,7 +66,7 @@ fn getenv(n: str) -> option<str> {
|
|||
str::as_buf(n,
|
||||
{|nbuf|
|
||||
unsafe {
|
||||
let vbuf = vec::to_ptr(v);
|
||||
let vbuf = vec::unsafe::to_ptr(v);
|
||||
os::kernel32::GetEnvironmentVariableA(nbuf, vbuf,
|
||||
nsize)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue