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 Jul 30, 2024
1 parent ada5b54 commit 4e84989
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/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 4e84989

Please sign in to comment.