From a57bb80a52161869c7e1f9f44684b889756dc689 Mon Sep 17 00:00:00 2001 From: GitGab19 Date: Thu, 16 May 2024 18:08:03 +0200 Subject: [PATCH] fmt --- roles/jd-client/src/lib/job_declarator/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/jd-client/src/lib/job_declarator/mod.rs b/roles/jd-client/src/lib/job_declarator/mod.rs index fe81f6ce48..abaf852ca2 100644 --- a/roles/jd-client/src/lib/job_declarator/mod.rs +++ b/roles/jd-client/src/lib/job_declarator/mod.rs @@ -152,9 +152,10 @@ impl JobDeclarator { //check hashmap size in order to not let it grow indefinetely if s.last_declare_mining_jobs_sent.len() < 10 { s.last_declare_mining_jobs_sent.insert(request_id, Some(j)); - } else if let Some(min_key) = s.last_declare_mining_jobs_sent.keys().min().cloned() { - s.last_declare_mining_jobs_sent.remove(&min_key); - s.last_declare_mining_jobs_sent.insert(request_id, Some(j)); + } else if let Some(min_key) = s.last_declare_mining_jobs_sent.keys().min().cloned() + { + s.last_declare_mining_jobs_sent.remove(&min_key); + s.last_declare_mining_jobs_sent.insert(request_id, Some(j)); } }) .unwrap();