style: apply rustfmt drift across the crate

This commit is contained in:
2026-05-05 11:40:14 -06:00
parent 84cee3f29e
commit 4a59041d1a
60 changed files with 1520 additions and 608 deletions
+5 -5
View File
@@ -21,7 +21,10 @@ pub struct ParetoArchive<D> {
impl<D: Clone> ParetoArchive<D> {
/// Build an empty archive against the given objective space.
pub fn new(objectives: ObjectiveSpace) -> Self {
Self { members: Vec::new(), objectives }
Self {
members: Vec::new(),
objectives,
}
}
/// Insert a candidate, preserving the non-domination property.
@@ -85,10 +88,7 @@ mod tests {
use crate::core::objective::Objective;
fn space_min2() -> ObjectiveSpace {
ObjectiveSpace::new(vec![
Objective::minimize("f1"),
Objective::minimize("f2"),
])
ObjectiveSpace::new(vec![Objective::minimize("f1"), Objective::minimize("f2")])
}
fn cand(decision: u32, obj: Vec<f64>) -> Candidate<u32> {