tree-wide: fix needless borrows

found and fixed via clippy

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-12-30 12:57:37 +01:00
parent a0c69902c8
commit 9a37bd6c84
104 changed files with 238 additions and 241 deletions

View File

@ -195,7 +195,7 @@ fn extract_archive(
let mut reader = stdin.lock();
extract_archive_from_reader(
&mut reader,
&target,
target,
feature_flags,
verbose,
options,
@ -208,7 +208,7 @@ fn extract_archive(
let mut reader = std::io::BufReader::new(file);
extract_archive_from_reader(
&mut reader,
&target,
target,
feature_flags,
verbose,
options,
@ -409,7 +409,7 @@ async fn mount_archive(
let mountpoint = Path::new(&mountpoint);
let options = OsStr::new("ro,default_permissions");
let session = fuse::Session::mount_path(&archive, &options, verbose, mountpoint)
let session = fuse::Session::mount_path(archive, options, verbose, mountpoint)
.await
.map_err(|err| format_err!("pxar mount failed: {}", err))?;