Skip to content

Commit 683cc03

Browse files
committed
refactor: remove unused type parameter
1 parent 099a7d5 commit 683cc03

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/readers/csv.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ where
8383
Matrix: Array2<T>,
8484
{
8585
let csv_text = read_string_from_source(source)?;
86-
let rows: Vec<Vec<T>> = extract_row_vectors_from_csv_text::<T, RowVector, Matrix>(
86+
let rows: Vec<Vec<T>> = extract_row_vectors_from_csv_text(
8787
&csv_text,
8888
&definition,
8989
detect_row_format(&csv_text, &definition)?,
@@ -103,12 +103,7 @@ where
103103

104104
/// Given a string containing the contents of a csv file, extract its value
105105
/// into row-vectors.
106-
fn extract_row_vectors_from_csv_text<
107-
'a,
108-
T: Number + RealNumber + std::str::FromStr,
109-
RowVector: Array1<T>,
110-
Matrix: Array2<T>,
111-
>(
106+
fn extract_row_vectors_from_csv_text<'a, T: Number + RealNumber + std::str::FromStr>(
112107
csv_text: &'a str,
113108
definition: &'a CSVDefinition<'_>,
114109
row_format: CSVRowFormat<'_>,
@@ -305,12 +300,11 @@ mod tests {
305300
}
306301
mod extract_row_vectors_from_csv_text {
307302
use super::super::{extract_row_vectors_from_csv_text, CSVDefinition, CSVRowFormat};
308-
use crate::linalg::basic::matrix::DenseMatrix;
309303

310304
#[test]
311305
fn read_default_csv() {
312306
assert_eq!(
313-
extract_row_vectors_from_csv_text::<f64, Vec<_>, DenseMatrix<_>>(
307+
extract_row_vectors_from_csv_text::<f64>(
314308
"column 1, column 2, column3\n1.0,2.0,3.0\n4.0,5.0,6.0",
315309
&CSVDefinition::default(),
316310
CSVRowFormat {

0 commit comments

Comments
 (0)