Skip to content

Commit a982f0b

Browse files
KmolYuanNil Goyette
authored andcommitted
Revert cargo fmt.
1 parent a796dc5 commit a982f0b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/lib.rs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,22 @@
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+
115116
extern crate alloc;
116117

117-
#[cfg(not(feature = "std"))]
118-
extern crate core as std;
119118
#[cfg(feature = "std")]
120119
extern crate std;
120+
#[cfg(not(feature = "std"))]
121+
extern crate core as std;
121122

122123
#[cfg(feature = "blas")]
123124
extern crate cblas_sys;
124125

125126
#[cfg(feature = "docs")]
126127
pub mod doc;
127128

128-
use alloc::sync::Arc;
129129
use std::marker::PhantomData;
130+
use alloc::sync::Arc;
130131

131132
pub use crate::dimension::dim::*;
132133
pub use crate::dimension::{Axis, AxisDescription, Dimension, IntoDimension, RemoveAxis};
@@ -145,16 +146,16 @@ use crate::iterators::Baseiter;
145146
use crate::iterators::{ElementsBase, ElementsBaseMut, Iter, IterMut};
146147

147148
pub use crate::arraytraits::AsArray;
148-
pub use crate::linalg_traits::LinalgScalar;
149149
#[cfg(feature = "std")]
150150
pub use crate::linalg_traits::NdFloat;
151+
pub use crate::linalg_traits::LinalgScalar;
151152

152153
#[allow(deprecated)] // stack_new_axis
153154
pub use crate::stacking::{concatenate, stack, stack_new_axis};
154155

155-
pub use crate::impl_views::IndexLonger;
156156
pub 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]
160161
mod macro_utils;
@@ -175,7 +176,8 @@ mod data_traits;
175176
pub use crate::aliases::*;
176177

177178
pub 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

181183
mod free_functions;
@@ -198,9 +200,9 @@ mod partial;
198200
mod shape_builder;
199201
#[macro_use]
200202
mod slice;
201-
mod low_level_util;
202203
mod split_at;
203204
mod stacking;
205+
mod low_level_util;
204206
#[macro_use]
205207
mod zip;
206208

@@ -1500,8 +1502,8 @@ impl<'a, A> CowRepr<'a, A> {
15001502
// Consider the doc effect of ordering modules here.
15011503
mod impl_clone;
15021504

1503-
mod impl_constructors;
15041505
mod impl_internal_constructors;
1506+
mod impl_constructors;
15051507

15061508
mod impl_methods;
15071509
mod 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

Comments
 (0)