112112//! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
113113//! [`image`](https://crates.io/crates/image) check out [`nshare`](https://crates.io/crates/nshare).
114114
115+
115116extern crate alloc;
116117
117- #[ cfg( not( feature = "std" ) ) ]
118- extern crate core as std;
119118#[ cfg( feature = "std" ) ]
120119extern crate std;
120+ #[ cfg( not( feature = "std" ) ) ]
121+ extern crate core as std;
121122
122123#[ cfg( feature = "blas" ) ]
123124extern crate cblas_sys;
124125
125126#[ cfg( feature = "docs" ) ]
126127pub mod doc;
127128
128- use alloc:: sync:: Arc ;
129129use std:: marker:: PhantomData ;
130+ use alloc:: sync:: Arc ;
130131
131132pub use crate :: dimension:: dim:: * ;
132133pub use crate :: dimension:: { Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis } ;
@@ -145,16 +146,16 @@ use crate::iterators::Baseiter;
145146use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut } ;
146147
147148pub use crate :: arraytraits:: AsArray ;
148- pub use crate :: linalg_traits:: LinalgScalar ;
149149#[ cfg( feature = "std" ) ]
150150pub use crate :: linalg_traits:: NdFloat ;
151+ pub use crate :: linalg_traits:: LinalgScalar ;
151152
152153#[ allow( deprecated) ] // stack_new_axis
153154pub use crate :: stacking:: { concatenate, stack, stack_new_axis} ;
154155
155- pub use crate :: impl_views:: IndexLonger ;
156156pub use crate :: math_cell:: MathCell ;
157- pub use crate :: shape_builder:: { Shape , ShapeArg , ShapeBuilder , StrideShape } ;
157+ pub use crate :: impl_views:: IndexLonger ;
158+ pub use crate :: shape_builder:: { Shape , ShapeBuilder , ShapeArg , StrideShape } ;
158159
159160#[ macro_use]
160161mod macro_utils;
@@ -175,7 +176,8 @@ mod data_traits;
175176pub use crate :: aliases:: * ;
176177
177178pub use crate :: data_traits:: {
178- Data , DataMut , DataOwned , DataShared , RawData , RawDataClone , RawDataMut , RawDataSubst ,
179+ Data , DataMut , DataOwned , DataShared , RawData , RawDataClone , RawDataMut ,
180+ RawDataSubst ,
179181} ;
180182
181183mod free_functions;
@@ -198,9 +200,9 @@ mod partial;
198200mod shape_builder;
199201#[ macro_use]
200202mod slice;
201- mod low_level_util;
202203mod split_at;
203204mod stacking;
205+ mod low_level_util;
204206#[ macro_use]
205207mod zip;
206208
@@ -1500,8 +1502,8 @@ impl<'a, A> CowRepr<'a, A> {
15001502// Consider the doc effect of ordering modules here.
15011503mod impl_clone;
15021504
1503- mod impl_constructors;
15041505mod impl_internal_constructors;
1506+ mod impl_constructors;
15051507
15061508mod impl_methods;
15071509mod impl_owned_array;
@@ -1562,7 +1564,9 @@ where
15621564 let d = self . dim . try_remove_axis ( axis) ;
15631565 let s = self . strides . try_remove_axis ( axis) ;
15641566 // safe because new dimension, strides allow access to a subset of old data
1565- unsafe { self . with_strides_dim ( s, d) }
1567+ unsafe {
1568+ self . with_strides_dim ( s, d)
1569+ }
15661570 }
15671571}
15681572
0 commit comments