Skip to content

Commit

Permalink
👽 Migrate for pna 0.13.0
Browse files Browse the repository at this point in the history
- Renamed `ReadOption` to `ReadOptions`
  • Loading branch information
ChanTsune committed Jun 24, 2024
1 parent 11ab042 commit 76e1d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/file_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,7 +19,7 @@ pub(crate) struct LoadedEntry {

pub(crate) struct UnprocessedEntry {
entry: pna::RegularEntry,
option: ReadOption,
option: ReadOptions,
}

pub(crate) enum State {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 76e1d97

Please sign in to comment.