client: clippy lints

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-06-02 15:57:33 +02:00
parent 1ec167ee8c
commit c39852abdc
1 changed files with 2 additions and 3 deletions

View File

@ -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());