style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -124,9 +124,7 @@ impl EarlyStopping {
|
||||
|
||||
/// Get the optimization history
|
||||
pub fn get_optimization_history(&self) -> OptimizationHistory {
|
||||
let total_time = self
|
||||
.start_time
|
||||
.map_or(0.0, |s| s.elapsed().as_secs_f64());
|
||||
let total_time = self.start_time.map_or(0.0, |s| s.elapsed().as_secs_f64());
|
||||
|
||||
OptimizationHistory {
|
||||
trials: self.trials.clone(),
|
||||
|
||||
Reference in New Issue
Block a user