Skip to content

Commit f9fece2

Browse files
committedApr 19, 2019
Brings back Wtf8Buf
1 parent eba3253 commit f9fece2

File tree

2 files changed

+505
-5
lines changed

2 files changed

+505
-5
lines changed
 

‎src/libstd/sys/windows/args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ unsafe fn parse_lp_cmd_line<F: Fn() -> OsString>(lp_cmd_line: *const u16, exe_na
6464
// no matter what.
6565
QUOTE => {
6666
let args = {
67-
let mut cut = cmd_line[1..].splitn(2, |&c| c == QUOTE);
67+
let mut cut = cmd_line[1..].splitn(2, |&c: &u8| c == QUOTE);
6868
if let Some(exe) = cut.next() {
6969
ret_val.push(OsString::from_wide(exe));
7070
}
@@ -89,7 +89,7 @@ unsafe fn parse_lp_cmd_line<F: Fn() -> OsString>(lp_cmd_line: *const u16, exe_na
8989
// no matter what.
9090
_ => {
9191
let args = {
92-
let mut cut = cmd_line.splitn(2, |&c| c > 0 && c <= SPACE);
92+
let mut cut = cmd_line.splitn(2, |&c: &u8| c > 0 && c <= SPACE);
9393
if let Some(exe) = cut.next() {
9494
ret_val.push(OsString::from_wide(exe));
9595
}

0 commit comments

Comments
 (0)
Please sign in to comment.