fixed compiler warnings

This commit is contained in:
2026-03-07 00:37:51 -05:00
parent fe9fd5c797
commit ae73969969
10 changed files with 53 additions and 54 deletions

View File

@@ -333,6 +333,7 @@ pub fn borrow_fd<'f>(fd: i32) -> BorrowedFd<'f> {
unsafe { BorrowedFd::borrow_raw(fd) }
}
type PipeFrames = Map<PipeGenerator, fn((Option<Redir>, Option<Redir>)) -> IoFrame>;
pub struct PipeGenerator {
num_cmds: usize,
cursor: usize,
@@ -347,7 +348,7 @@ impl PipeGenerator {
last_rpipe: None,
}
}
pub fn as_io_frames(self) -> Map<Self, fn((Option<Redir>, Option<Redir>)) -> IoFrame> {
pub fn as_io_frames(self) -> PipeFrames {
self.map(|(r, w)| {
let mut frame = IoFrame::new();
if let Some(r) = r {