diff --git a/src/lib.rs b/src/lib.rs index ffcc6d3..31a6347 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,7 +98,7 @@ pub struct Input(Stream); impl Input { /// Open the input stream. - pub fn open(self) -> io::Result> { + pub fn open(self) -> io::Result> { match self.0 { Stream::File(_) => { let file = self.open_file().unwrap()?; @@ -194,7 +194,7 @@ pub struct Output(Stream); impl Output { /// Open the output stream. - pub fn open(self) -> io::Result> { + pub fn open(self) -> io::Result> { match self.0 { Stream::File(_) => { let file = self.open_file().unwrap()?;