client: clippy lints
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1ec167ee8c
commit
c39852abdc
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue