Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 30, 2023
1 parent 0be4920 commit 87fac3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/updater/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,10 @@ impl Update {
let decoder = GzDecoder::new(cursor);
let mut archive = tar::Archive::new(decoder);

fn extract_archive<R>(archive: tar::Archive<R>, extract_path: &Path) -> Result<()> {
fn extract_archive<R: std::io::Read>(
archive: tar::Archive<R>,
extract_path: &Path,
) -> Result<()> {
std::fs::create_dir(extract_path)?;
for entry in archive.entries()? {
let mut entry = entry?;
Expand Down

0 comments on commit 87fac3c

Please sign in to comment.