From 76e1d97cb5ff0ab8101e317fbb0c1346bf7304df Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:13:09 +0900 Subject: [PATCH] :alien: Migrate for pna 0.13.0 - Renamed `ReadOption` to `ReadOptions` --- src/file_manager.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file_manager.rs b/src/file_manager.rs index 94cff8d..3ec8427 100644 --- a/src/file_manager.rs +++ b/src/file_manager.rs @@ -2,7 +2,7 @@ use fuser::{FileAttr, FileType}; use id_tree::{InsertBehavior, Node, NodeId, Tree, TreeBuilder}; #[cfg(unix)] use nix::unistd::{Gid, Group, Uid, User}; -use pna::{Archive, DataKind, Permission, ReadOption}; +use pna::{Archive, DataKind, Permission, ReadOptions}; use std::collections::HashMap; use std::ffi::OsString; use std::io::Read; @@ -19,7 +19,7 @@ pub(crate) struct LoadedEntry { pub(crate) struct UnprocessedEntry { entry: pna::RegularEntry, - option: ReadOption, + option: ReadOptions, } pub(crate) enum State { @@ -150,7 +150,7 @@ impl File { blksize: 512, flags: 0, }; - let option = ReadOption::with_password(password); + let option = ReadOptions::with_password(password); let (data, raw_size) = if let Some(raw_size) = metadata.raw_file_size() { let data = Entry(State::Unprocessed(UnprocessedEntry { entry, option })); (data, raw_size as usize)