From 254ec194123a5c5a219d90772b277d74d0e0e732 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 14 Oct 2020 11:32:22 +0200 Subject: [PATCH] pxar: remove unused parameter Signed-off-by: Wolfgang Bumiller --- src/client/pxar_backup_stream.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client/pxar_backup_stream.rs b/src/client/pxar_backup_stream.rs index 30ca8af5..aa3355fe 100644 --- a/src/client/pxar_backup_stream.rs +++ b/src/client/pxar_backup_stream.rs @@ -1,7 +1,7 @@ use std::collections::HashSet; use std::io::Write; //use std::os::unix::io::FromRawFd; -use std::path::{Path, PathBuf}; +use std::path::Path; use std::pin::Pin; use std::sync::{Arc, Mutex}; use std::task::{Context, Poll}; @@ -38,7 +38,6 @@ impl Drop for PxarBackupStream { impl PxarBackupStream { pub fn new( dir: Dir, - _path: PathBuf, device_set: Option>, verbose: bool, skip_lost_and_found: bool, @@ -102,11 +101,9 @@ impl PxarBackupStream { entries_max: usize, ) -> Result { let dir = nix::dir::Dir::open(dirname, OFlag::O_DIRECTORY, Mode::empty())?; - let path = std::path::PathBuf::from(dirname); Self::new( dir, - path, device_set, verbose, skip_lost_and_found,