We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
into_bytes
1 parent a1c5893 commit f4e1b2fCopy full SHA for f4e1b2f
1 file changed
library/std/src/sys/args/wali.rs
@@ -39,9 +39,7 @@ mod imp {
39
__cl_copy_argv(ptr, idx);
40
CString::from_raw(ptr)
41
};
42
- let mut arg_buf = arg_buf.into_bytes_with_nul();
43
- let _ = arg_buf.pop();
44
- OsStringExt::from_vec(arg_buf)
+ OsStringExt::from_vec(arg_buf.into_bytes())
45
}
46
47
fn argc_argv() -> Vec<OsString> {
0 commit comments