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:
@@ -45,7 +45,10 @@ impl MinMaxScaler {
|
||||
/// # Panics
|
||||
/// Panics if min >= max
|
||||
pub fn with_range(min: f32, max: f32) -> Self {
|
||||
assert!(min < max, "min must be less than max, got min={min}, max={max}");
|
||||
assert!(
|
||||
min < max,
|
||||
"min must be less than max, got min={min}, max={max}"
|
||||
);
|
||||
|
||||
Self {
|
||||
feature_range: (min, max),
|
||||
|
||||
Reference in New Issue
Block a user