Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
//! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html

use std::{
ffi::{c_int, c_void},
marker::PhantomData,
mem,
os::raw::{c_int, c_void},
ptr, slice,
mem, ptr, slice,
};

use ndarray::{
Expand Down
3 changes: 1 addition & 2 deletions src/borrow/shared.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::collections::hash_map::Entry;
use std::ffi::{c_void, CString};
use std::ffi::{c_char, c_int, c_void, CString};
use std::mem::forget;
use std::os::raw::{c_char, c_int};
use std::ptr::NonNull;
use std::slice::from_raw_parts;
use std::sync::Mutex;
Expand Down
2 changes: 1 addition & 1 deletion src/convert.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Defines conversion traits between Rust types and NumPy data types.

use std::{mem, os::raw::c_int, ptr};
use std::{ffi::c_int, mem, ptr};

use ndarray::{ArrayBase, Data, Dim, Dimension, IntoDimension, Ix1, OwnedRepr};
use pyo3::{Bound, Python};
Expand Down
2 changes: 1 addition & 1 deletion src/dtype.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::ffi::{c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort};
use std::mem::size_of;
use std::os::raw::{c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort};
use std::ptr;

#[cfg(feature = "half")]
Expand Down
2 changes: 1 addition & 1 deletion src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//! [ucs4]: https://numpy.org/doc/stable/reference/c-api/dtype.html#c.NPY_UNICODE

use std::collections::hash_map::Entry;
use std::ffi::c_char;
use std::fmt;
use std::mem::size_of;
use std::os::raw::c_char;
use std::str;
use std::sync::Mutex;

Expand Down
Loading