From 6ee11761cea5dc1cbdbeebdac93a667d9beefc73 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Fri, 5 Jul 2024 13:49:32 -0700 Subject: [PATCH] Erase unguaranteeable Sync requirement --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()?;