File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/std/src/sys/pal/wasi Expand file tree Collapse file tree 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 {
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 {
You can’t perform that action at this time.
0 commit comments