mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
needless_return
unneeded `return` statement
This commit is contained in:
parent
ad12be3668
commit
533de2bc41
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user