We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 628f2bb commit 261be37Copy full SHA for 261be37
std/src/sys/pal/wasi/fs.rs
@@ -183,7 +183,7 @@ impl Iterator for ReadDir {
183
184
fn next(&mut self) -> Option<io::Result<DirEntry>> {
185
match &mut self.state {
186
- ReadDirState::FillBuffer { next_read_offset, ref mut buf } => {
+ ReadDirState::FillBuffer { next_read_offset, buf } => {
187
let result = self.inner.dir.fd.readdir(buf, *next_read_offset);
188
match result {
189
Ok(read_bytes) => {
@@ -207,7 +207,7 @@ impl Iterator for ReadDir {
207
}
208
209
210
- ReadDirState::ProcessEntry { ref mut buf, next_read_offset, offset } => {
+ ReadDirState::ProcessEntry { buf, next_read_offset, offset } => {
211
let contents = &buf[*offset..];
212
const DIRENT_SIZE: usize = crate::mem::size_of::<wasi::Dirent>();
213
if contents.len() >= DIRENT_SIZE {
0 commit comments