Skip to content

Commit 2e49c75

Browse files
committed
Updated backhand to 0.21.0
1 parent d1ddf29 commit 2e49c75

File tree

3 files changed

+23
-33
lines changed

3 files changed

+23
-33
lines changed

Cargo.lock

Lines changed: 20 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ zip = "2.2.0"
2020
dirs = "5.0.1"
2121
regex = "1.11.0"
2222
image = "0.25.4"
23-
backhand = "0.19.0"
23+
backhand = "0.21.0"

src/appimage.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ pub fn read_squashfs(path: &Path) -> FilesystemReader<'_> {
8686
pub fn write_from_squashfs_file(reader: &FilesystemReader<'_>, squashfs_file: &SquashfsFileReader, output_path: &Path) {
8787
let file = files::create(output_path);
8888

89-
let mut wr = BufWriter::with_capacity(squashfs_file.basic.file_size as usize, &file);
90-
let mut rd = reader.file(&squashfs_file.basic).reader();
89+
let mut wr = BufWriter::with_capacity(squashfs_file.file_len(), &file);
90+
let mut rd = reader.file(&squashfs_file).reader();
9191

9292
match std::io::copy(&mut rd, &mut wr) {
9393
Ok(_) => {},

0 commit comments

Comments
 (0)