diff --git a/src/read/stream.rs b/src/read/stream.rs index 2e47396a..9db06b91 100644 --- a/src/read/stream.rs +++ b/src/read/stream.rs @@ -71,7 +71,7 @@ impl ZipStreamReader { fs::create_dir_all(&outpath)?; } else { if let Some(p) = outpath.parent() { - fs::create_dir_all(&p)?; + fs::create_dir_all(p)?; } let mut outfile = fs::File::create(&outpath)?; io::copy(file, &mut outfile)?;