Skip to content

Commit c61fe8e

Browse files
committed
Cubic-Spline: Further Clippy amendments
1 parent d49ffd2 commit c61fe8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/RustQuant_data/src/curves.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Curve {
125125
};
126126

127127
Ok(Self {
128-
nodes: dates.into_iter().zip(rates.into_iter()).map(|(a, b)| (OrderedFloat(a), b)).collect(),
128+
nodes: dates.into_iter().zip(rates).map(|(a, b)| (OrderedFloat(a), b)).collect(),
129129
curve_type,
130130
interpolation_method,
131131
interpolator,
@@ -278,7 +278,7 @@ impl Curve {
278278
let left = self.nodes.range(..OrderedFloat(index)).next_back().unwrap().0;
279279
let right = self.nodes.range(OrderedFloat(index)..).next().unwrap().0;
280280

281-
return (left.0, right.0);
281+
(left.0, right.0)
282282
}
283283

284284
/// Shift the curve by a constant value.

0 commit comments

Comments
 (0)