ok clippy
This commit is contained in:
parent
f304dae207
commit
b47a778b9e
1 changed files with 2 additions and 2 deletions
|
@ -125,13 +125,13 @@ impl PathInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn check_if_already_exists(&self, s3_client: &s3::Client, bucket: String) -> bool {
|
pub async fn check_if_already_exists(&self, s3_client: &s3::Client, bucket: String) -> bool {
|
||||||
!s3_client
|
s3_client
|
||||||
.head_object()
|
.head_object()
|
||||||
.bucket(bucket)
|
.bucket(bucket)
|
||||||
.key(format!("{}.narinfo", self.digest()))
|
.key(format!("{}.narinfo", self.digest()))
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
.is_err()
|
.is_ok()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue