fixed clippy issues (#106)

This commit is contained in:
Henk-Jan Lebbink
2024-12-15 04:31:51 +01:00
committed by GitHub
parent c28f576cb8
commit 8facff7bad
10 changed files with 66 additions and 77 deletions

View File

@@ -28,14 +28,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
// Check 'bucket_name' bucket exist or not.
let exists: bool = client
.bucket_exists(&BucketExistsArgs::new(&bucket_name).unwrap())
.bucket_exists(&BucketExistsArgs::new(bucket_name).unwrap())
.await
.unwrap();
// Make 'bucket_name' bucket if not exist.
if !exists {
client
.make_bucket(&MakeBucketArgs::new(&bucket_name).unwrap())
.make_bucket(&MakeBucketArgs::new(bucket_name).unwrap())
.await
.unwrap();
}