We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01255ed commit 852c484Copy full SHA for 852c484
1 file changed
lib/rust/mmoptimise/src/global/uniform_grid_search.rs
@@ -392,13 +392,10 @@ impl UniformGridSearch {
392
393
// Progress tracking shared across rayon threads.
394
let completed = AtomicUsize::new(0);
395
- let last_log_time =
396
- Mutex::new(std::time::Instant::now());
+ let last_log_time = Mutex::new(std::time::Instant::now());
397
// Tracks (best_cost, best_params) seen so far across all threads.
398
- let best_so_far: Mutex<(f64, Vec<f64>)> = Mutex::new((
399
- f64::MAX,
400
- vec![f64::NAN; self.cfg.num_dimensions],
401
- ));
+ let best_so_far: Mutex<(f64, Vec<f64>)> =
+ Mutex::new((f64::MAX, vec![f64::NAN; self.cfg.num_dimensions]));
402
403
// Step 3: Evaluate all grid points in parallel.
404
//
0 commit comments