From b47a778b9eeee968c53f103e67344548ed2d032d Mon Sep 17 00:00:00 2001 From: cy Date: Mon, 14 Apr 2025 13:28:04 -0400 Subject: [PATCH] ok clippy --- src/path_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path_info.rs b/src/path_info.rs index 2bf05ea..44beac1 100644 --- a/src/path_info.rs +++ b/src/path_info.rs @@ -125,13 +125,13 @@ impl PathInfo { } pub async fn check_if_already_exists(&self, s3_client: &s3::Client, bucket: String) -> bool { - !s3_client + s3_client .head_object() .bucket(bucket) .key(format!("{}.narinfo", self.digest())) .send() .await - .is_err() + .is_ok() } }