Skip to content

Commit ac8fbdf

Browse files
committed
Rm unused FromEnvErrorKuind::CannotSetNonBlocking
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
1 parent 12237e1 commit ac8fbdf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/error.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ pub enum FromEnvErrorKind {
2828
CannotOpenPath,
2929
/// Cannot open file descriptor from the jobserver environment variable value.
3030
CannotOpenFd,
31-
/// Cannot set file descriptor to non blocking
32-
CannotSetNonBlocking,
3331
/// The jobserver style is a simple pipe, but at least one of the file descriptors
3432
/// is negative, which means it is disabled for this process
3533
/// ([GNU `make` manual: POSIX Jobserver Interaction](https://www.gnu.org/software/make/manual/make.html#POSIX-Jobserver)).
@@ -49,7 +47,6 @@ impl FromEnvError {
4947
FromEnvErrorInner::CannotParse(_) => FromEnvErrorKind::CannotParse,
5048
FromEnvErrorInner::CannotOpenPath(..) => FromEnvErrorKind::CannotOpenPath,
5149
FromEnvErrorInner::CannotOpenFd(..) => FromEnvErrorKind::CannotOpenFd,
52-
FromEnvErrorInner::CannotSetNonBlocking(..) => FromEnvErrorKind::CannotSetNonBlocking,
5350
FromEnvErrorInner::NegativeFd(..) => FromEnvErrorKind::NegativeFd,
5451
FromEnvErrorInner::NotAPipe(..) => FromEnvErrorKind::NotAPipe,
5552
FromEnvErrorInner::Unsupported => FromEnvErrorKind::Unsupported,
@@ -65,7 +62,6 @@ impl std::fmt::Display for FromEnvError {
6562
FromEnvErrorInner::CannotParse(s) => write!(f, "cannot parse jobserver environment variable value: {s}"),
6663
FromEnvErrorInner::CannotOpenPath(s, err) => write!(f, "cannot open path or name {s} from the jobserver environment variable value: {err}"),
6764
FromEnvErrorInner::CannotOpenFd(fd, err) => write!(f, "cannot open file descriptor {fd} from the jobserver environment variable value: {err}"),
68-
FromEnvErrorInner::CannotSetNonBlocking(fd, err) => write!(f, "cannot set file descriptor {fd} to be non-blocking: {err}"),
6965
FromEnvErrorInner::NegativeFd(fd) => write!(f, "file descriptor {fd} from the jobserver environment variable value is negative"),
7066
FromEnvErrorInner::NotAPipe(fd, None) => write!(f, "file descriptor {fd} from the jobserver environment variable value is not a pipe"),
7167
FromEnvErrorInner::NotAPipe(fd, Some(err)) => write!(f, "file descriptor {fd} from the jobserver environment variable value is not a pipe: {err}"),
@@ -93,7 +89,6 @@ pub(crate) enum FromEnvErrorInner {
9389
CannotParse(String),
9490
CannotOpenPath(String, std::io::Error),
9591
CannotOpenFd(RawFd, std::io::Error),
96-
CannotSetNonBlocking(RawFd, std::io::Error),
9792
NegativeFd(RawFd),
9893
NotAPipe(RawFd, Option<std::io::Error>),
9994
Unsupported,

0 commit comments

Comments
 (0)