Fix cargo clippy issues
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2025-07-03 08:05:56 +02:00
parent c0b4154e67
commit 76e7bc8c46
2 changed files with 32 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ impl MinioService {
/// Get bucket name prefixed by mc alias name
fn absolute_bucket_name(&self, name: &str) -> String {
format!("{}/{name}", MC_ALIAS_NAME)
format!("{MC_ALIAS_NAME}/{name}")
}
/// Execute a minio mc command
@@ -172,7 +172,7 @@ impl MinioService {
where
A: DeserializeOwned,
{
log::debug!("exec_mc_cmd with args {:?}", args);
log::debug!("exec_mc_cmd with args {args:?}");
let conf_dir = temp::create_temp_dir()?;
let global_flags = ["--config-dir", conf_dir.to_str().unwrap(), "--json"];
@@ -354,7 +354,7 @@ impl MinioService {
let bucket_name = self.absolute_bucket_name(bucket);
let res = if let Some(quota) = &quota {
let quota = format!("{}B", quota);
let quota = format!("{quota}B");
self.exec_mc_cmd::<BasicMinioResult>(&[
"quota",
"set",
@@ -447,7 +447,7 @@ impl MinioService {
"governance" => RetentionType::Governance,
"compliance" => RetentionType::Compliance,
o => {
log::error!("Unknown retention type: {}", o);
log::error!("Unknown retention type: {o}");
return Ok(None);
}
},