diff --git a/crates/wasi-c2/src/dir.rs b/crates/wasi-c2/src/dir.rs index e85bd85e28..718f499db9 100644 --- a/crates/wasi-c2/src/dir.rs +++ b/crates/wasi-c2/src/dir.rs @@ -267,7 +267,8 @@ impl WasiDir for cap_std::fs::Dir { // cap_std's read_dir does not include . and .., we should prepend these. // Why closures? failure of any individual entry doesn't mean the whole method should // fail. - // Why the tuple? We can't construct a cap_std::fs::DirEntry. + // Why is the Ok case a tuple? We can't construct a cap_std::fs::DirEntry, and we don't + // have enough info to make a ReaddirEntity yet. let rd = vec![ (|| { let meta = self.dir_metadata()?;