Skip to content

Commit 99bffc8

Browse files
committed
Remove macro_use directives which are not necessary with Rust edition 2018.
1 parent 009cb6a commit 99bffc8

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use crate::npyffi::{self, npy_intp, NPY_ORDER, PY_ARRAY_API};
33
use ndarray::*;
44
use num_traits::AsPrimitive;
55
use pyo3::{
6-
ffi, prelude::*, type_object, types::PyAny, AsPyPointer, PyDowncastError, PyNativeType,
7-
PyResult,
6+
ffi, prelude::*, pyobject_native_type_info, pyobject_native_type_named, type_object,
7+
types::PyAny, AsPyPointer, PyDowncastError, PyNativeType, PyResult,
88
};
99
use std::{
1010
cell::Cell,

src/dtype.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use crate::npyffi::{NpyTypes, PyArray_Descr, NPY_TYPES, PY_ARRAY_API};
2+
use cfg_if::cfg_if;
3+
use pyo3::{ffi, prelude::*, pyobject_native_type_core, types::PyType, AsPyPointer, PyNativeType};
4+
use std::os::raw::c_int;
5+
26
pub use num_complex::Complex32 as c32;
37
pub use num_complex::Complex64 as c64;
4-
use pyo3::ffi;
5-
use pyo3::prelude::*;
6-
use pyo3::types::PyType;
7-
use pyo3::{AsPyPointer, PyNativeType};
8-
use std::os::raw::c_int;
98

109
/// Binding of [`numpy.dtype`](https://numpy.org/doc/stable/reference/generated/numpy.dtype.html).
1110
///

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
//! })
3030
//! }
3131
//! ```
32-
33-
#[macro_use]
34-
extern crate cfg_if;
35-
#[macro_use]
36-
extern crate pyo3;
37-
3832
pub mod array;
3933
pub mod convert;
4034
mod dtype;

0 commit comments

Comments
 (0)