wip
This commit is contained in:
parent
ba20ea4e2a
commit
a2dee988be
2 changed files with 2 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is automatically @generated by Cargo.
|
# This file is automatically @generated by Cargo.
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 4
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "adler"
|
name = "adler"
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ pub fn extract_deb(input_path: &Path,) -> Result<(),io::Error>{
|
||||||
let mut entry = entry_result.unwrap();
|
let mut entry = entry_result.unwrap();
|
||||||
// Create a new file with the same name as the archive entry:
|
// Create a new file with the same name as the archive entry:
|
||||||
let mut file = File::create(
|
let mut file = File::create(
|
||||||
str::from_utf8(entry.header().identifier()).unwrap(),
|
std::str::from_utf8(entry.header().identifier()).unwrap(),
|
||||||
).unwrap();
|
).unwrap();
|
||||||
// The Entry object also acts as an io::Read, so we can easily copy the
|
// The Entry object also acts as an io::Read, so we can easily copy the
|
||||||
// contents of the archive entry into the file:
|
// contents of the archive entry into the file:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue