Skip to content

Commit

Permalink
Suppress new false-negatives that were masked by dead code analysis c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
compiler-errors committed Aug 3, 2024
1 parent 9eb9fa6 commit 35cd95f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/src/sys/pal/unix/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub fn anon_pipe() -> io::Result<(AnonPipe, AnonPipe)> {
}

impl AnonPipe {
#[allow(dead_code)]
// FIXME: This function seems legitimately unused.
pub fn try_clone(&self) -> io::Result<Self> {
self.0.duplicate().map(Self)
}
Expand Down Expand Up @@ -85,6 +87,8 @@ impl AnonPipe {
self.0.is_write_vectored()
}

#[allow(dead_code)]
// FIXME: This function seems legitimately unused.
pub fn as_file_desc(&self) -> &FileDesc {
&self.0
}
Expand Down

0 comments on commit 35cd95f

Please sign in to comment.