From c39852abdc6e9e18f33d9dd5a5098487432a4db1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 2 Jun 2022 15:57:33 +0200 Subject: [PATCH] client: clippy lints Signed-off-by: Thomas Lamprecht --- pbs-client/src/pxar/extract.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs index 674603527..cb21d27d9 100644 --- a/pbs-client/src/pxar/extract.rs +++ b/pbs-client/src/pxar/extract.rs @@ -584,8 +584,7 @@ where match entry.kind() { EntryKind::File { .. } => { let size = decoder.content_size().unwrap_or(0); - tar_add_file(&mut tarencoder, decoder.contents(), size, &metadata, &path) - .await? + tar_add_file(&mut tarencoder, decoder.contents(), size, metadata, path).await? } EntryKind::Hardlink(link) => { if !link.data.is_empty() { @@ -614,7 +613,7 @@ where decoder.contents(), size, metadata, - &path, + path, ) .await?; hardlinks.insert(realpath.to_owned(), path.to_owned());