From b25ecd3cebd7ea90a0dbecc643d5eb387c529829 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 22 Dec 2025 17:31:55 -0800 Subject: [PATCH] Revert #1552. See [this comment] for details. [this comment]: https://github.com/bytecodealliance/rustix/pull/1552#issuecomment-3644833288 --- src/fs/raw_dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/raw_dir.rs b/src/fs/raw_dir.rs index a821ad523..9691ca715 100644 --- a/src/fs/raw_dir.rs +++ b/src/fs/raw_dir.rs @@ -199,7 +199,7 @@ impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { /// with GAT support once one becomes available. #[allow(unsafe_code)] #[allow(clippy::should_implement_trait)] - pub fn next(&mut self) -> Option>> { + pub fn next(&mut self) -> Option>> { if self.is_buffer_empty() { match getdents_uninit(self.fd.as_fd(), self.buf) { Ok(0) => return None,