File tree 1 file changed +2
-2
lines changed
library/std/src/sys/pal/wasi
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ impl Iterator for ReadDir {
183
183
184
184
fn next ( & mut self ) -> Option < io:: Result < DirEntry > > {
185
185
match & mut self . state {
186
- ReadDirState :: FillBuffer { next_read_offset, ref mut buf } => {
186
+ ReadDirState :: FillBuffer { next_read_offset, buf } => {
187
187
let result = self . inner . dir . fd . readdir ( buf, * next_read_offset) ;
188
188
match result {
189
189
Ok ( read_bytes) => {
@@ -207,7 +207,7 @@ impl Iterator for ReadDir {
207
207
}
208
208
}
209
209
}
210
- ReadDirState :: ProcessEntry { ref mut buf, next_read_offset, offset } => {
210
+ ReadDirState :: ProcessEntry { buf, next_read_offset, offset } => {
211
211
let contents = & buf[ * offset..] ;
212
212
const DIRENT_SIZE : usize = crate :: mem:: size_of :: < wasi:: Dirent > ( ) ;
213
213
if contents. len ( ) >= DIRENT_SIZE {
You can’t perform that action at this time.
0 commit comments