Format
This commit is contained in:
@@ -896,7 +896,12 @@ impl FdTbl {
|
||||
|
||||
impl FdTbl {
|
||||
pub fn enumerate(&self) -> impl Iterator<Item = (usize, &Option<FileDescriptor>)> {
|
||||
self.posix_fdtbl.iter().enumerate().chain(self.upper_fdtbl.iter().enumerate().map(|(i, fd)| (i | UPPER_FDTBL_TAG, fd)))
|
||||
self.posix_fdtbl.iter().enumerate().chain(
|
||||
self.upper_fdtbl
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(i, fd)| (i | UPPER_FDTBL_TAG, fd)),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> impl Iterator<Item = &Option<FileDescriptor>> {
|
||||
|
||||
Reference in New Issue
Block a user