Skip to content

Commit a941e68

Browse files
committed
fix fmt
1 parent 27393d5 commit a941e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/windows/stdio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ fn write(
144144
incomplete_utf8.len = 1;
145145
return Ok(1);
146146
} else {
147-
return Err(io::Error::new_const(
147+
return Err(io::Error::new(
148148
io::ErrorKind::InvalidData,
149-
&"Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
149+
"Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
150150
));
151151
}
152152
}

0 commit comments

Comments
 (0)