Skip to content

Commit 93cecb2

Browse files
committed
format
1 parent 9fbf326 commit 93cecb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use wide::*;
77
// use std::simd::Simd;
88
// use std::simd::cmp::SimdPartialEq;
99

10+
use numpy::PyArray1;
1011
use numpy::PyArrayMethods;
1112
use numpy::PyUntypedArrayMethods;
1213
use numpy::ToPyArray;
1314
use numpy::{PyArray2, PyReadonlyArray2};
14-
use numpy::PyArray1;
1515

1616
#[pyfunction]
1717
fn first_true_1d_a(array: PyReadonlyArray1<bool>) -> isize {
@@ -334,7 +334,6 @@ fn first_true_1d(py: Python, array: PyReadonlyArray1<bool>, forward: bool) -> is
334334

335335
//------------------------------------------------------------------------------
336336

337-
338337
// NOTE: we copy the entire array into contiguous memory when necessary.
339338
// axis = 0 returns the pos per col
340339
// axis = 1 returns the pos per row (as contiguous bytes)
@@ -419,7 +418,6 @@ pub fn first_true_2d<'py>(
419418
Ok(PyArray1::from_vec(py, result).to_owned())
420419
}
421420

422-
423421
//------------------------------------------------------------------------------
424422

425423
#[pymodule]

0 commit comments

Comments
 (0)