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() { match entry.kind() {
EntryKind::File { .. } => { EntryKind::File { .. } => {
let size = decoder.content_size().unwrap_or(0); let size = decoder.content_size().unwrap_or(0);
tar_add_file(&mut tarencoder, decoder.contents(), size, &metadata, &path) tar_add_file(&mut tarencoder, decoder.contents(), size, metadata, path).await?
.await?
} }
EntryKind::Hardlink(link) => { EntryKind::Hardlink(link) => {
if !link.data.is_empty() { if !link.data.is_empty() {
@ -614,7 +613,7 @@ where
decoder.contents(), decoder.contents(),
size, size,
metadata, metadata,
&path, path,
) )
.await?; .await?;
hardlinks.insert(realpath.to_owned(), path.to_owned()); hardlinks.insert(realpath.to_owned(), path.to_owned());