Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JRRudy1 committed Oct 5, 2024
1 parent 0c9f6e9 commit eca4460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ use std::marker::PhantomData;
use pyo3::{sync::GILProtected, Bound, Py, Python};
use rustc_hash::FxHashMap;

use crate::dtype::{Element, PyArrayDescr, PyArrayDescrMethods, clone_methods_impl};
use crate::dtype::{clone_methods_impl, Element, PyArrayDescr, PyArrayDescrMethods};
use crate::npyffi::{
PyArray_DatetimeDTypeMetaData, PyDataType_C_METADATA, NPY_DATETIMEUNIT, NPY_TYPES,
};
Expand Down
10 changes: 5 additions & 5 deletions src/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ use std::ptr;
#[cfg(feature = "half")]
use half::{bf16, f16};
use num_traits::{Bounded, Zero};
#[cfg(feature = "half")]
use pyo3::sync::GILOnceCell;
use pyo3::{
exceptions::{PyIndexError, PyValueError},
ffi::{self, PyTuple_Size},
pyobject_native_type_extract, pyobject_native_type_named,
types::{PyAnyMethods, PyDict, PyDictMethods, PyTuple, PyType},
Borrowed, Bound, Py, PyAny, PyObject, PyResult, PyTypeInfo, Python, ToPyObject,
};
#[cfg(feature = "half")]
use pyo3::{sync::GILOnceCell};
#[cfg(feature = "gil-refs")]
use pyo3::{AsPyPointer, PyNativeType};

Expand Down Expand Up @@ -790,14 +790,14 @@ macro_rules! clone_methods_impl {
#[inline]
fn array_from_view<D>(
_py: ::pyo3::Python<'_>,
view: ::ndarray::ArrayView<'_, $Self, D>
view: ::ndarray::ArrayView<'_, $Self, D>,
) -> ::ndarray::Array<$Self, D>
where
D: ::ndarray::Dimension
D: ::ndarray::Dimension,
{
::ndarray::ArrayView::to_owned(&view)
}
}
};
}
pub(crate) use clone_methods_impl;

Expand Down

0 comments on commit eca4460

Please sign in to comment.