mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-10 23:26:53 +00:00
chore(lint): clippy rules redundant_clone (#2554)
This commit is contained in:
@@ -231,7 +231,7 @@ pub fn init_metrics_collectors(token: CancellationToken) {
|
||||
.map(Duration::from_secs)
|
||||
.unwrap_or(DEFAULT_SYSTEM_METRICS_INTERVAL);
|
||||
|
||||
let token_clone = token.clone();
|
||||
let token_clone = token;
|
||||
tokio::spawn(async move {
|
||||
// Get current process PID
|
||||
let pid = match sysinfo::get_current_pid() {
|
||||
|
||||
Reference in New Issue
Block a user