Refactor/cleanup errors (#179)
Some checks failed
Rust Linters / rustfmt (push) Successful in 3m20s
rust-clippy analyze / Run rust-clippy analyzing (push) Failing after 1m5s

* error refactored: moved to thiserror
* Result type alias for better ergonomics:
* removed field from MinioErrorCode::BucketNotEmpty enum
* made field private of MinioErrorResponse
* updated XmlError
* simplified calling errors
* bumped toolchain channel form 1.86.0 to 1.87.0
* bumped toolchain channel form 1.87.0 to 1.88.0 due to clippy fixes that are not compatible with 1.87.0
This commit is contained in:
Henk-Jan Lebbink
2025-08-15 06:31:45 +02:00
committed by GitHub
parent e73fa1019c
commit 5080bf9b85
133 changed files with 2214 additions and 1701 deletions

View File

@@ -24,7 +24,6 @@ use minio_common::utils::{
get_bytes_from_response, get_response_from_bytes, rand_bucket_name, rand_object_name,
};
use std::env;
use tokio::runtime::Runtime;
pub(crate) struct Ctx2 {
@@ -170,7 +169,7 @@ pub(crate) fn benchmark_s3_api<ApiType, GlobalSetupFuture>(
pub(crate) async fn skip_express_mode(bench_name: &str) -> bool {
let skip = TestContext::new_from_env().client.is_minio_express().await;
if skip {
println!("Skipping benchmark '{}' (MinIO Express mode)", bench_name);
println!("Skipping benchmark '{bench_name}' (MinIO Express mode)");
}
skip
}