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 4f4cc28 commit 71567a8Copy full SHA for 71567a8
std/src/sys/windows/stdio.rs
@@ -266,7 +266,7 @@ impl io::Read for Stdin {
266
let mut bytes_copied = self.incomplete_utf8.read(buf);
267
268
if bytes_copied == buf.len() {
269
- return Ok(bytes_copied);
+ Ok(bytes_copied)
270
} else if buf.len() - bytes_copied < 4 {
271
// Not enough space to get a UTF-8 byte. We will use the incomplete UTF8.
272
let mut utf16_buf = [MaybeUninit::new(0); 1];
0 commit comments