Skip to content

Commit 9afee2c

Browse files
authored
Merge pull request #464 from jturner314/rm-trailing-whitespace
Remove trailing whitespace
2 parents 7ac0600 + 29f64f8 commit 9afee2c

File tree

18 files changed

+34
-34
lines changed

18 files changed

+34
-34
lines changed

blas-tests/tests/oper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn mat_mul() {
260260
}
261261

262262
// Check that matrix multiplication of contiguous matrices returns a
263-
// matrix with the same order
263+
// matrix with the same order
264264
#[test]
265265
fn mat_mul_order() {
266266
let (m, n, k) = (8, 8, 8);

examples/convo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SHARPEN: [[f32; 3]; 3] = [[0., -1., 0.], [ -1., 5., -1.], [0., -1., 0.]];
1414
type Kernel3x3<A> = [[A; 3]; 3];
1515

1616
#[inline(never)]
17-
fn conv_3x3<F>(a: &ArrayView2<F>, out: &mut ArrayViewMut2<F>, kernel: &Kernel3x3<F>)
17+
fn conv_3x3<F>(a: &ArrayView2<F>, out: &mut ArrayViewMut2<F>, kernel: &Kernel3x3<F>)
1818
where F: Float,
1919
{
2020
let (n, m) = a.dim();

examples/zip_many.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424

2525
azip!(mut a, b, c in { *a = b + c; });
2626
assert_eq!(a, &b + &c);
27-
27+
2828
// sum of each row
2929
let ax = Axis(0);
3030
let mut sums = Array::zeros(a.len_of(ax));

src/data_traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub unsafe trait Data : Sized {
3737
/// Array representation trait.
3838
///
3939
/// For an array with writable elements.
40-
///
40+
///
4141
/// ***Internal trait, see `Data`.***
4242
pub unsafe trait DataMut : Data {
4343
#[doc(hidden)]

src/dimension/conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ macro_rules! tuple_to_array {
110110
index!(tuple_expr [self] $n)
111111
}
112112
}
113-
113+
114114
impl IntoDimension for [Ix; $n] {
115115
type Dim = Dim<[Ix; $n]>;
116116
#[inline(always)]

src/dimension/dimension_trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ impl Dimension for Dim<[Ix; 2]> {
582582
Axis(1)
583583
}
584584
}
585-
585+
586586
#[inline]
587587
fn first_index(&self) -> Option<Self> {
588588
let m = get!(self, 0);

src/dimension/ndindex.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ unsafe impl NdIndex<Ix2> for (Ix, Ix) {
5757
}
5858
#[inline]
5959
fn index_unchecked(&self, strides: &Ix2) -> isize {
60-
stride_offset(self.0, get!(strides, 0)) +
60+
stride_offset(self.0, get!(strides, 0)) +
6161
stride_offset(self.1, get!(strides, 1))
6262
}
6363
}
@@ -69,7 +69,7 @@ unsafe impl NdIndex<Ix3> for (Ix, Ix, Ix) {
6969

7070
#[inline]
7171
fn index_unchecked(&self, strides: &Ix3) -> isize {
72-
stride_offset(self.0, get!(strides, 0)) +
72+
stride_offset(self.0, get!(strides, 0)) +
7373
stride_offset(self.1, get!(strides, 1)) +
7474
stride_offset(self.2, get!(strides, 2))
7575
}
@@ -133,7 +133,7 @@ macro_rules! ndindex_with_array {
133133
#[inline]
134134
fn index_unchecked(&self, _strides: &$ix_n) -> isize {
135135
$(
136-
stride_offset(self[$index], get!(_strides, $index)) +
136+
stride_offset(self[$index], get!(_strides, $index)) +
137137
)*
138138
0
139139
}
@@ -155,7 +155,7 @@ macro_rules! ndindex_with_array {
155155
"Attempted to index with {:?} in array with {} axes",
156156
self, strides.ndim());
157157
$(
158-
stride_offset(get!(self, $index), get!(strides, $index)) +
158+
stride_offset(get!(self, $index), get!(strides, $index)) +
159159
)*
160160
0
161161
}
@@ -177,7 +177,7 @@ macro_rules! ndindex_with_array {
177177
"Attempted to index with {:?} in array with {} axes",
178178
self, strides.ndim());
179179
$(
180-
stride_offset(self[$index], get!(strides, $index)) +
180+
stride_offset(self[$index], get!(strides, $index)) +
181181
)*
182182
0
183183
}

src/impl_methods.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
892892
/// **Panics** if any dimension of `chunk_size` is zero<br>
893893
/// (**Panics** if `D` is `IxDyn` and `chunk_size` does not match the
894894
/// number of array axes.)
895-
pub fn exact_chunks<E>(&self, chunk_size: E) -> ExactChunks<A, D>
895+
pub fn exact_chunks<E>(&self, chunk_size: E) -> ExactChunks<A, D>
896896
where E: IntoDimension<Dim=D>,
897897
{
898898
exact_chunks_of(self.view(), chunk_size)
@@ -930,7 +930,7 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
930930
/// [6, 6, 7, 7, 8, 8, 0],
931931
/// [6, 6, 7, 7, 8, 8, 0]]));
932932
/// ```
933-
pub fn exact_chunks_mut<E>(&mut self, chunk_size: E) -> ExactChunksMut<A, D>
933+
pub fn exact_chunks_mut<E>(&mut self, chunk_size: E) -> ExactChunksMut<A, D>
934934
where E: IntoDimension<Dim=D>,
935935
S: DataMut
936936
{
@@ -941,13 +941,13 @@ impl<A, S, D> ArrayBase<S, D> where S: Data<Elem=A>, D: Dimension
941941
///
942942
/// The windows are all distinct overlapping views of size `window_size`
943943
/// that fit into the array's shape.
944-
///
944+
///
945945
/// Will yield over no elements if window size is larger
946946
/// than the actual array size of any dimension.
947947
///
948948
/// The produced element is an `ArrayView<A, D>` with exactly the dimension
949949
/// `window_size`.
950-
///
950+
///
951951
/// **Panics** if any dimension of `window_size` is zero.<br>
952952
/// (**Panics** if `D` is `IxDyn` and `window_size` does not match the
953953
/// number of array axes.)

src/indexes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl<D: Dimension + Copy> NdProducer for Indices<D> {
178178

179179
#[inline(always)]
180180
fn contiguous_stride(&self) -> Self::Stride { 0 }
181-
181+
182182
#[doc(hidden)]
183183
fn split_at(self, axis: Axis, index: usize) -> (Self, Self) {
184184
let start_a = self.start;

src/iterators/macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ macro_rules! impl_ndproducer {
3636
unsafe fn item(&$self_:ident, $ptr:pat) {
3737
$refexpr:expr
3838
}
39-
}) => {
39+
}) => {
4040
impl<$($typarm)*> NdProducer for $fulltype {
4141
$(
4242
type $atyn = $atyv;
@@ -98,7 +98,7 @@ impl<$($typarm)*> NdProducer for $fulltype {
9898
private_impl!{}
9999
}
100100

101-
expand_if!(@nonempty [$($cloneparm)*]
101+
expand_if!(@nonempty [$($cloneparm)*]
102102
impl<$($cloneparm)*> Clone for $fulltype {
103103
fn clone(&self) -> Self {
104104
$typename {
@@ -130,8 +130,8 @@ macro_rules! impl_iterator {
130130
fn item(&mut $self_:ident, $elt:pat) {
131131
$refexpr:expr
132132
}
133-
}) => {
134-
expand_if!(@nonempty [$($cloneparm)*]
133+
}) => {
134+
expand_if!(@nonempty [$($cloneparm)*]
135135

136136
impl<$($cloneparm)*> Clone for $fulltype {
137137
fn clone(&self) -> Self {

0 commit comments

Comments
 (0)