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.
1 parent 087acf7 commit 1eeebcfCopy full SHA for 1eeebcf
std/src/sys/windows/stdio.rs
@@ -144,9 +144,9 @@ fn write(
144
incomplete_utf8.len = 1;
145
return Ok(1);
146
} else {
147
- return Err(io::Error::new_const(
+ return Err(io::Error::new(
148
io::ErrorKind::InvalidData,
149
- &"Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
+ "Windows stdio in console mode does not support writing non-UTF-8 byte sequences",
150
));
151
}
152
0 commit comments