diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2023-11-22 12:59:22 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2023-11-22 13:00:28 +0000 |
| commit | 533de2bc4159ed929eb03f35f77b7da58311e82f (patch) | |
| tree | 2f2cb293b5bc48c45e0e44c7c1253c7c89e26c60 /library/std/src/sys/windows | |
| parent | ad12be3668de26dc1b35bb374e93b2bab58d02ae (diff) | |
| download | rust-533de2bc4159ed929eb03f35f77b7da58311e82f.tar.gz rust-533de2bc4159ed929eb03f35f77b7da58311e82f.zip | |
needless_return
unneeded `return` statement
Diffstat (limited to 'library/std/src/sys/windows')
| -rw-r--r-- | library/std/src/sys/windows/stdio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/stdio.rs b/library/std/src/sys/windows/stdio.rs index a9ff909aa67..51a1a4875bb 100644 --- a/library/std/src/sys/windows/stdio.rs +++ b/library/std/src/sys/windows/stdio.rs @@ -266,7 +266,7 @@ impl io::Read for Stdin { let mut bytes_copied = self.incomplete_utf8.read(buf); if bytes_copied == buf.len() { - return Ok(bytes_copied); + Ok(bytes_copied) } else if buf.len() - bytes_copied < 4 { // Not enough space to get a UTF-8 byte. We will use the incomplete UTF8. let mut utf16_buf = [MaybeUninit::new(0); 1]; |
