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:
@@ -442,7 +442,10 @@ fn compute_robust_threshold(data: &[f64]) -> f64 {
|
||||
deviations.sort_by(|a, b| a.partial_cmp(b).unwrap());
|
||||
|
||||
let mad = if deviations.len().is_multiple_of(2) {
|
||||
f64::midpoint(deviations[deviations.len() / 2 - 1], deviations[deviations.len() / 2])
|
||||
f64::midpoint(
|
||||
deviations[deviations.len() / 2 - 1],
|
||||
deviations[deviations.len() / 2],
|
||||
)
|
||||
} else {
|
||||
deviations[deviations.len() / 2]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user