diff --git a/src/io.rs b/src/io.rs index 42f188a54..2e949bb04 100644 --- a/src/io.rs +++ b/src/io.rs @@ -317,14 +317,14 @@ pub struct IoBufferfill { impl IoBufferfill { /// Create an IoBufferfill which, when written from, fills a buffer with the contents. /// Returns an error on failure, e.g. too many open fds. - pub fn create() -> io::Result> { + pub fn create() -> io::Result> { Self::create_opts(0, STDOUT_FILENO) } /// Create an IoBufferfill which, when written from, fills a buffer with the contents. /// Returns an error on failure, e.g. too many open fds. /// /// \param target the fd which this will be dup2'd to - typically stdout. - pub fn create_opts(buffer_limit: usize, target: RawFd) -> io::Result> { + pub fn create_opts(buffer_limit: usize, target: RawFd) -> io::Result> { assert!(target >= 0, "Invalid target fd"); // Construct our pipes. @@ -343,7 +343,7 @@ pub fn create_opts(buffer_limit: usize, target: RawFd) -> io::Result