diff options
| author | Count Count <countvoncount123456@gmail.com> | 2021-03-21 11:48:51 +0100 |
|---|---|---|
| committer | Count Count <countvoncount123456@gmail.com> | 2021-03-24 07:11:51 +0100 |
| commit | a941e68e08e3a20bf918d2291a01fda9facefb74 (patch) | |
| tree | 852cf02d520cd84e85c263a1913b1aab124e1369 | |
| parent | 27393d5ca63c55313182bd6cbb8ef2ecd4c1472f (diff) | |
| download | rust-a941e68e08e3a20bf918d2291a01fda9facefb74.tar.gz rust-a941e68e08e3a20bf918d2291a01fda9facefb74.zip | |
fix fmt
| -rw-r--r-- | library/std/src/sys/windows/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/windows/stdio.rs b/library/std/src/sys/windows/stdio.rs index 160d9bcd4d2..0fade85d8d4 100644 --- a/library/std/src/sys/windows/stdio.rs +++ b/library/std/src/sys/windows/stdio.rs @@ -144,9 +144,9 @@ fn write( incomplete_utf8.len = 1; return Ok(1); } else { - return Err(io::Error::new_const( + return Err(io::Error::new( io::ErrorKind::InvalidData, - &"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", )); } } |
