Skip to content

Commit 5d37dfb

Browse files
committed
Fix clippy lints
- list indentation - ignore false positive for PointerExt trait methods (there's already an issue on this in clippy).
1 parent 6cb2368 commit 5d37dfb

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

src/dimension/reshape.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ where
3131
/// Preconditions:
3232
///
3333
/// 1. from_dim and to_dim are valid dimensions (product of all non-zero axes
34-
/// fits in isize::MAX).
34+
/// fits in isize::MAX).
3535
/// 2. from_dim and to_dim are don't have any axes that are zero (that should be handled before
3636
/// this function).
3737
/// 3. `to_strides` should be an all-zeros or all-ones dimension of the right dimensionality
38-
/// (but it will be overwritten after successful exit of this function).
38+
/// (but it will be overwritten after successful exit of this function).
3939
///
4040
/// This function returns:
4141
///

src/impl_owned_array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ where D: Dimension
513513
/// "growing axis" for the array, i.e. one of these is true:
514514
///
515515
/// - The axis is the longest stride axis, for example the 0th axis in a C-layout or the
516-
/// *n-1*th axis in an F-layout array.
516+
/// *n-1*th axis in an F-layout array.
517517
/// - The axis has length 0 or 1 (It is converted to the new growing axis)
518518
///
519519
/// Ensure appending is efficient by for example starting from an empty array and/or always
@@ -569,7 +569,7 @@ where D: Dimension
569569
/// "growing axis" for the array, i.e. one of these is true:
570570
///
571571
/// - The axis is the longest stride axis, for example the 0th axis in a C-layout or the
572-
/// *n-1*th axis in an F-layout array.
572+
/// *n-1*th axis in an F-layout array.
573573
/// - The axis has length 0 or 1 (It is converted to the new growing axis)
574574
///
575575
/// Ensure appending is efficient by for example starting from an empty array and/or always

src/lib.rs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
clippy::while_let_on_iterator, // is not an error
1818
clippy::from_iter_instead_of_collect, // using from_iter is good style
1919
clippy::redundant_closure, // false positives clippy #7812
20+
clippy::incompatible_msrv, // false positive PointerExt::offset
2021
)]
2122
#![doc(test(attr(deny(warnings))))]
2223
#![doc(test(attr(allow(unused_variables))))]
@@ -36,7 +37,7 @@
3637
//! It is used to implement both the owned arrays and the views; see its docs
3738
//! for an overview of all array features.<br>
3839
//! - The main specific array type is **[`Array`]**, which owns
39-
//! its elements.
40+
//! its elements.
4041
//!
4142
//! ## Highlights
4243
//!
@@ -376,14 +377,14 @@ pub type Ixs = isize;
376377
///
377378
/// - A [`struct@Dim`] value represents a dimensionality or index.
378379
/// - Trait [`Dimension`] is implemented by all
379-
/// dimensionalities. It defines many operations for dimensions and indices.
380+
/// dimensionalities. It defines many operations for dimensions and indices.
380381
/// - Trait [`IntoDimension`] is used to convert into a
381-
/// `Dim` value.
382+
/// `Dim` value.
382383
/// - Trait [`ShapeBuilder`] is an extension of
383-
/// `IntoDimension` and is used when constructing an array. A shape describes
384-
/// not just the extent of each axis but also their strides.
384+
/// `IntoDimension` and is used when constructing an array. A shape describes
385+
/// not just the extent of each axis but also their strides.
385386
/// - Trait [`NdIndex`] is an extension of `Dimension` and is
386-
/// for values that can be used with indexing syntax.
387+
/// for values that can be used with indexing syntax.
387388
///
388389
///
389390
/// The default memory order of an array is *row major* order (a.k.a “c” order),
@@ -1329,11 +1330,11 @@ pub type ArcArray<A, D> = ArrayBase<OwnedArcRepr<A>, D>;
13291330
/// + [Constructor Methods for Owned Arrays](ArrayBase#constructor-methods-for-owned-arrays)
13301331
/// + [Methods For All Array Types](ArrayBase#methods-for-all-array-types)
13311332
/// + Dimensionality-specific type alises
1332-
/// [`Array1`],
1333-
/// [`Array2`],
1334-
/// [`Array3`], ...,
1335-
/// [`ArrayD`],
1336-
/// and so on.
1333+
/// [`Array1`],
1334+
/// [`Array2`],
1335+
/// [`Array3`], ...,
1336+
/// [`ArrayD`],
1337+
/// and so on.
13371338
pub type Array<A, D> = ArrayBase<OwnedRepr<A>, D>;
13381339

13391340
/// An array with copy-on-write behavior.

0 commit comments

Comments
 (0)