chore(lint): clippy rules redundant_clone (#2554)

This commit is contained in:
Tunglies
2026-04-15 06:54:07 -07:00
committed by GitHub
parent 73e6542eea
commit 49366ee200
57 changed files with 100 additions and 119 deletions
+2 -2
View File
@@ -357,7 +357,7 @@ impl S3PeerSys {
ress.into_iter()
.filter(|op| op.is_some())
.find_map(|op| op.clone())
.find_map(|op| op)
.ok_or(Error::VolumeNotFound)
}
@@ -575,7 +575,7 @@ pub struct RemotePeerS3Client {
impl RemotePeerS3Client {
pub fn new(node: Option<Node>, pools: Option<Vec<usize>>) -> Self {
let addr = node.as_ref().map(|v| v.url.to_string()).unwrap_or_default().to_string();
let addr = node.as_ref().map(|v| v.url.to_string()).unwrap_or_default();
let client = Self {
node,
pools,
+1 -1
View File
@@ -109,7 +109,7 @@ impl RemoteDisk {
let disk = Self {
id: Mutex::new(None),
addr: addr.clone(),
addr,
endpoint: ep.clone(),
scanning: Arc::new(AtomicU32::new(0)),
health_check: opt.health_check && env_health_check,