mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
fix: clippy
This commit is contained in:
@@ -27,4 +27,3 @@ pub const ISO8601_DATEFORMAT: &[FormatItem<'_>] =
|
|||||||
|
|
||||||
pub const GET_OBJECT_ATTRIBUTES_TAGS: &str = "ETag,Checksum,StorageClass,ObjectSize,ObjectParts";
|
pub const GET_OBJECT_ATTRIBUTES_TAGS: &str = "ETag,Checksum,StorageClass,ObjectSize,ObjectParts";
|
||||||
pub const GET_OBJECT_ATTRIBUTES_MAX_PARTS: i64 = 1000;
|
pub const GET_OBJECT_ATTRIBUTES_MAX_PARTS: i64 = 1000;
|
||||||
const _RUSTFS_BUCKET_SOURCE_MTIME: &str = "X-RustFs-Source-Mtime";
|
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ use crate::{
|
|||||||
use ecstore::global::get_global_action_cred;
|
use ecstore::global::get_global_action_cred;
|
||||||
use http::{HeaderMap, StatusCode};
|
use http::{HeaderMap, StatusCode};
|
||||||
use iam::store::UserType;
|
use iam::store::UserType;
|
||||||
use madmin::{AccountStatus, AddOrUpdateUserReq, SRSessionPolicy, SRSvcAccCreate};
|
use madmin::{
|
||||||
|
AccountStatus, AddOrUpdateUserReq,
|
||||||
|
user::{SRSessionPolicy, SRSvcAccCreate},
|
||||||
|
};
|
||||||
use matchit::Params;
|
use matchit::Params;
|
||||||
use policy::policy::{
|
use policy::policy::{
|
||||||
Args,
|
Args,
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ async fn run(opt: config::Opt) -> Result<()> {
|
|||||||
let (endpoint_pools, setup_type) =
|
let (endpoint_pools, setup_type) =
|
||||||
EndpointServerPools::from_volumes(server_address.clone().as_str(), opt.volumes.clone()).map_err(Error::other)?;
|
EndpointServerPools::from_volumes(server_address.clone().as_str(), opt.volumes.clone()).map_err(Error::other)?;
|
||||||
|
|
||||||
// Print RustFS-style logging for pool formatting
|
|
||||||
for (i, eps) in endpoint_pools.as_ref().iter().enumerate() {
|
for (i, eps) in endpoint_pools.as_ref().iter().enumerate() {
|
||||||
info!(
|
info!(
|
||||||
"Formatting {}st pool, {} set(s), {} drives per set.",
|
"Formatting {}st pool, {} set(s), {} drives per set.",
|
||||||
|
|||||||
Reference in New Issue
Block a user