std: Rename Stdio::None to Stdio::Null

This better reflects what it's actually doing as we don't actually have an
option for "leave this I/O slot as an empty hole".
This commit is contained in:
Alex Crichton
2016-02-04 09:53:01 -08:00
parent 627515a7ff
commit b8bd8f3d7c
3 changed files with 15 additions and 18 deletions

View File

@@ -385,7 +385,7 @@ fn setup_io(io: &Stdio, readable: bool)
}
StdioImp::Raw(ref owned) => (imp::Stdio::Raw(owned.raw()), None, None),
StdioImp::Inherit => (imp::Stdio::Inherit, None, None),
StdioImp::None => (imp::Stdio::None, None, None),
StdioImp::Null => (imp::Stdio::Null, None, None),
})
}
@@ -439,7 +439,7 @@ enum StdioImp {
MakePipe,
Raw(imp::RawStdio),
Inherit,
None,
Null,
}
impl Stdio {
@@ -454,7 +454,7 @@ impl Stdio {
/// This stream will be ignored. This is the equivalent of attaching the
/// stream to `/dev/null`
#[stable(feature = "process", since = "1.0.0")]
pub fn null() -> Stdio { Stdio(StdioImp::None) }
pub fn null() -> Stdio { Stdio(StdioImp::Null) }
}
impl FromInner<imp::RawStdio> for Stdio {