From c9584542163d60d0aae6d6890509794e838e257f Mon Sep 17 00:00:00 2001 From: Sam Connelly Date: Tue, 1 Oct 2024 15:11:14 -0400 Subject: [PATCH] Fix compiler error --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index ef22318..3d2e223 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -87,7 +87,7 @@ pub fn find_cmd< 'a >( cmds: &[ &'a str ] ) -> Option< &'a str > { pub fn unpack< I: AsRef< Path >, O: AsRef< Path > >( input_path: I, output_path: O ) -> Result< (), Box< io::Error > > { let output_path = output_path.as_ref(); - let file = fs::File::open( input_path )?; + let file = File::open( input_path )?; let reader = BufReader::new( file ); let decoder = gzip::Decoder::new( reader )?; let mut archive = tar::Archive::new( decoder );