Skip to content

Commit 04a86e3

Browse files
committed
clippy + fmt
1 parent 00ce04d commit 04a86e3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/interp1d.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
//! A collection of structs and traits to interpolate data along the first axis
2-
//!
2+
//!
33
//! # Interpolator
44
//! - [`Interp1D`] The interpolator used with any strategy
55
//! - [`Interp1DBuilder`] Configure the interpolator
6-
//!
6+
//!
77
//! # Strategies
88
//! - [`Linear`] Linear interpolation strategy
99
//! - [`CubicSpline`] Cubic spline interpolation strategy
1010
1111
use std::{fmt::Debug, ops::Sub};
1212

1313
use ndarray::{
14-
s, Array, ArrayBase, ArrayView, Axis, AxisDescription, Data, DimAdd, Dimension, IntoDimension,
14+
Array, ArrayBase, ArrayView, Axis, AxisDescription, Data, DimAdd, Dimension, IntoDimension,
1515
Ix1, OwnedRepr, RemoveAxis, Slice,
1616
};
1717
use num_traits::{cast, Num, NumCast};

tests/interp1d.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ fn interp_multi_fn() {
195195
}
196196

197197
#[test]
198-
fn interp_array_with_differnt_repr(){
198+
fn interp_array_with_differnt_repr() {
199199
let interp = Interp1D::builder(array![1.0, 2.0, 3.0, 4.0, 5.0, 5.0, 4.0, 3.0, 2.0, 1.0])
200200
.build()
201201
.unwrap();
202202
let x_query = array![[1.0, 2.0, 9.0], [4.0, 5.0, 7.5]];
203203
let y_expect = array![[2.0, 3.0, 1.0], [5.0, 5.0, 2.5]];
204204
assert_eq!(interp.interp_array(&x_query.view()).unwrap(), y_expect);
205-
}
205+
}

0 commit comments

Comments
 (0)