about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-26 06:36:34 +0200
committerGitHub <noreply@github.com>2025-09-26 06:36:34 +0200
commit87b8eca51683252e9c27cd9cb2f456c3ee134cdb (patch)
tree04fc5e31b4882038b2e7b988dbb39cf54ba24b30 /library/std/src
parent1285b164e1acd3ca68c95bbcc9e91b0d7da26aa4 (diff)
parent0ede3fe48c0d373d3673459218e1b9e7eaa667b8 (diff)
downloadrust-87b8eca51683252e9c27cd9cb2f456c3ee134cdb.tar.gz
rust-87b8eca51683252e9c27cd9cb2f456c3ee134cdb.zip
Rollup merge of #147049 - vexide:vex-std, r=workingjubilee
std: fix warning in VEXos stdio module

Fixes building `std` on the `armv7a-vex-v5` target due to an unnecessarily mutable argument in `Stdin`.

This was a stupid oversight on my part towards the end of rust-lang/rust#145973's review process. Missed a warning and had a bad bootstrap config that didn't tell me about it when testing changes.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/stdio/vexos.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/stdio/vexos.rs b/library/std/src/sys/stdio/vexos.rs
index 1f2251c6421..9a391feb7a8 100644
--- a/library/std/src/sys/stdio/vexos.rs
+++ b/library/std/src/sys/stdio/vexos.rs
@@ -13,7 +13,7 @@ impl Stdin {
 }
 
 impl io::Read for Stdin {
-    fn read(&mut self, mut buf: &mut [u8]) -> io::Result<usize> {
+    fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
         let mut count = 0;
 
         for out_byte in buf.iter_mut() {