Skip to content

Commit 39de731

Browse files
committed
Cubic-Spline: Clippy amendments
1 parent 27674d9 commit 39de731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/RustQuant_math/src/interpolation/cubic_spline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ where
187187
fn fit(&mut self) -> Result<(), RustQuantError> {
188188

189189
self.time_steps = self.xs.windows(2)
190-
.map(|x| (x[1] - x[0]))
190+
.map(|x| x[1] - x[0])
191191
.collect();
192192

193193
let mut rhs: Vec<ValueType> = self.xs.iter().zip(self.ys.iter())

crates/RustQuant_math/src/interpolation/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// - LICENSE-MIT.md
88
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99

10-
use std::{i8, ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Sub}};
10+
use std::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Sub};
1111
use rust_decimal::prelude::*;
1212
use RustQuant_error::RustQuantError;
1313

0 commit comments

Comments
 (0)