fix clippy

This commit is contained in:
weisd
2025-06-25 11:13:29 +08:00
parent 280d14997a
commit 61e600b9ba
15 changed files with 127 additions and 117 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ impl TransitionClient {
}
#[derive(Default)]
struct GetRequest {
pub struct GetRequest {
pub buffer: Vec<u8>,
pub offset: i64,
pub did_offset_change: bool,
@@ -72,7 +72,7 @@ struct GetRequest {
pub setting_object_info: bool,
}
struct GetResponse {
pub struct GetResponse {
pub size: i64,
//pub error: error,
pub did_read: bool,
@@ -80,7 +80,7 @@ struct GetResponse {
}
#[derive(Default)]
struct Object {
pub struct Object {
//pub reqch: chan<- getRequest,
//pub resch: <-chan getResponse,
//pub cancel: context.CancelFunc,
+2 -2
View File
@@ -27,7 +27,7 @@ use crate::{
use reader::hasher::{sum_md5_base64, sum_sha256_hex};
use rustfs_utils::hash::EMPTY_STRING_SHA256_HASH;
struct RemoveBucketOptions {
pub struct RemoveBucketOptions {
forced_elete: bool,
}
@@ -426,7 +426,7 @@ impl TransitionClient {
}
#[derive(Debug, Default)]
struct RemoveObjectError {
pub struct RemoveObjectError {
object_name: String,
version_id: String,
err: Option<std::io::Error>,
+1 -1
View File
@@ -84,7 +84,7 @@ pub struct CredContext {
pub endpoint: String,
}
trait Provider {
pub trait Provider {
fn retrieve(&self) -> Value;
fn retrieve_with_cred_context(&self, _: CredContext) -> Value;
fn is_expired(&self) -> bool;
+1 -1
View File
@@ -116,7 +116,7 @@ pub struct Options {
}
#[derive(Clone, Debug, Default, PartialEq, Eq)]
enum BucketLookupType {
pub enum BucketLookupType {
#[default]
BucketLookupAuto,
BucketLookupDNS,