simplify pxar module structure

This commit is contained in:
Dietmar Maurer
2019-03-15 08:24:32 +01:00
parent 1ef46b81d3
commit 3dbfe5b142
6 changed files with 22 additions and 18 deletions

View File

@ -27,7 +27,7 @@ use nix::sys::stat::FileStat;
/// maximum memory usage.
pub const MAX_DIRECTORY_ENTRIES: usize = 256*1024;
pub struct PxarEncoder<'a, W: Write> {
pub struct Encoder<'a, W: Write> {
current_path: PathBuf, // used for error reporting
writer: &'a mut W,
writer_pos: usize,
@ -38,7 +38,7 @@ pub struct PxarEncoder<'a, W: Write> {
verbose: bool,
}
impl <'a, W: Write> PxarEncoder<'a, W> {
impl <'a, W: Write> Encoder<'a, W> {
pub fn encode(
path: PathBuf,