summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-12 14:13:04 -0800
committerEric Huss <eric@huss.org>2025-02-13 13:10:27 -0800
commit1ba59f868a937a4ce39b28c5d496f06cf8e977d7 (patch)
treec60847a43d7c26069505a7115c0ec2b2eb1f0777 /library
parent7dc9e057428f4f235de2fec90218980bac7c46a7 (diff)
downloadrust-1ba59f868a937a4ce39b28c5d496f06cf8e977d7.tar.gz
rust-1ba59f868a937a4ce39b28c5d496f06cf8e977d7.zip
std: Apply rust_2024_incompatible_pat
Diffstat (limited to 'library')
-rw-r--r--library/std/src/sys/pal/wasi/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/wasi/fs.rs b/library/std/src/sys/pal/wasi/fs.rs
index 7705e7f6b88..faf3edd5da6 100644
--- a/library/std/src/sys/pal/wasi/fs.rs
+++ b/library/std/src/sys/pal/wasi/fs.rs
@@ -183,7 +183,7 @@ impl Iterator for ReadDir {
 
     fn next(&mut self) -> Option<io::Result<DirEntry>> {
         match &mut self.state {
-            ReadDirState::FillBuffer { next_read_offset, ref mut buf } => {
+            ReadDirState::FillBuffer { next_read_offset, buf } => {
                 let result = self.inner.dir.fd.readdir(buf, *next_read_offset);
                 match result {
                     Ok(read_bytes) => {
@@ -207,7 +207,7 @@ impl Iterator for ReadDir {
                     }
                 }
             }
-            ReadDirState::ProcessEntry { ref mut buf, next_read_offset, offset } => {
+            ReadDirState::ProcessEntry { buf, next_read_offset, offset } => {
                 let contents = &buf[*offset..];
                 const DIRENT_SIZE: usize = crate::mem::size_of::<wasi::Dirent>();
                 if contents.len() >= DIRENT_SIZE {