We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5275ff commit 70152ffCopy full SHA for 70152ff
src/libstd/os.rs
@@ -196,7 +196,7 @@ pub fn env() -> ~[(~str,~str)] {
196
if (ch as uint == 0) {
197
fail!("os::env() failure getting env string from OS: %s", os::last_os_error());
198
}
199
- let result = unsafe { str::raw::from_c_multistring(ch as *libc::c_char, None) };
+ let result = str::raw::from_c_multistring(ch as *libc::c_char, None);
200
FreeEnvironmentStringsA(ch);
201
result
202
0 commit comments