Skip to content

Commit 483200b

Browse files
max-sixtyLukeMathWalker
authored andcommitted
cargo fix --edition-idioms (#666)
* cargo fix --edition-idioms * all features * remove all `use [\w]*;` statements * clippy lint in examples * add back blas extern crate * add back another blas extern
1 parent be3b74f commit 483200b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+105
-203
lines changed

benches/bench1.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
clippy::many_single_char_names
88
)]
99

10-
extern crate ndarray;
1110
extern crate test;
1211

1312
use ndarray::ShapeBuilder;

benches/chunks.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
extern crate test;
44
use test::Bencher;
55

6-
extern crate ndarray;
76
use ndarray::prelude::*;
87
use ndarray::NdProducer;
98

benches/construct.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
extern crate test;
99
use test::Bencher;
1010

11-
extern crate ndarray;
1211
use ndarray::prelude::*;
1312

1413
#[bench]

benches/gemv.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
extern crate test;
1010
use test::Bencher;
1111

12-
extern crate ndarray;
1312
use ndarray::prelude::*;
1413

1514
use ndarray::linalg::general_mat_vec_mul;

benches/higher-order.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::iter::FromIterator;
1010
use test::black_box;
1111
use test::Bencher;
1212

13-
extern crate ndarray;
1413
use ndarray::prelude::*;
1514

1615
const N: usize = 1024;
@@ -23,7 +22,7 @@ fn map_regular(bench: &mut Bencher) {
2322
bench.iter(|| a.map(|&x| 2. * x));
2423
}
2524

26-
pub fn double_array(mut a: ArrayViewMut2<f64>) {
25+
pub fn double_array(mut a: ArrayViewMut2<'_, f64>) {
2726
a *= 2.0;
2827
}
2928

benches/iter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
clippy::many_single_char_names
77
)]
88

9-
extern crate rawpointer;
109
extern crate test;
1110
use rawpointer::PointerExt;
1211
use test::black_box;
1312
use test::Bencher;
1413

15-
extern crate ndarray;
1614
use ndarray::prelude::*;
1715
use ndarray::Slice;
1816
use ndarray::{FoldWhile, Zip};

benches/numeric.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
extern crate test;
44
use test::Bencher;
55

6-
extern crate ndarray;
76
use ndarray::prelude::*;
87

98
const N: usize = 1024;

benches/par_rayon.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#![cfg(feature = "rayon")]
22
#![feature(test)]
33

4-
extern crate rayon;
5-
6-
extern crate itertools;
7-
extern crate ndarray;
8-
94
use ndarray::parallel::prelude::*;
105
use ndarray::prelude::*;
116

@@ -17,8 +12,6 @@ use ndarray::Zip;
1712
const EXP_N: usize = 256;
1813
const ADDN: usize = 512;
1914

20-
use std::cmp::max;
21-
2215
fn set_threads() {
2316
// Consider setting a fixed number of threads here, for example to avoid
2417
// oversubscribing on hyperthreaded cores.

examples/axis_ops.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
clippy::unreadable_literal,
55
clippy::many_single_char_names
66
)]
7-
extern crate ndarray;
87

98
use ndarray::prelude::*;
109

examples/bounds_check_elim.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
// Test cases for bounds check elimination
1010

11-
extern crate ndarray;
12-
1311
use ndarray::prelude::*;
1412

1513
/*

0 commit comments

Comments
 (0)