Skip to content

Commit eb4c95b

Browse files
ehussgitbot
authored and
gitbot
committed
std: Apply rust_2024_incompatible_pat
1 parent 92bdbd6 commit eb4c95b

File tree

1 file changed

+2
-2
lines changed
  • std/src/sys/pal/wasi

1 file changed

+2
-2
lines changed

std/src/sys/pal/wasi/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl Iterator for ReadDir {
183183

184184
fn next(&mut self) -> Option<io::Result<DirEntry>> {
185185
match &mut self.state {
186-
ReadDirState::FillBuffer { next_read_offset, ref mut buf } => {
186+
ReadDirState::FillBuffer { next_read_offset, buf } => {
187187
let result = self.inner.dir.fd.readdir(buf, *next_read_offset);
188188
match result {
189189
Ok(read_bytes) => {
@@ -207,7 +207,7 @@ impl Iterator for ReadDir {
207207
}
208208
}
209209
}
210-
ReadDirState::ProcessEntry { ref mut buf, next_read_offset, offset } => {
210+
ReadDirState::ProcessEntry { buf, next_read_offset, offset } => {
211211
let contents = &buf[*offset..];
212212
const DIRENT_SIZE: usize = crate::mem::size_of::<wasi::Dirent>();
213213
if contents.len() >= DIRENT_SIZE {

0 commit comments

Comments
 (0)