Skip to content

Commit

Permalink
Merge pull request #848 from ZuseZ4/fix_CI
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
bluss committed Nov 28, 2020
2 parents e808e2b + 4f0cd9b commit a224232
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,7 @@ sudo: required
dist: trusty
matrix:
include:
- rust: 1.37.0
- rust: 1.42.0
env:
- FEATURES='test docs'
- RUSTFLAGS='-D warnings'
Expand Down
4 changes: 1 addition & 3 deletions src/error.rs
Expand Up @@ -33,6 +33,7 @@ impl ShapeError {
///
/// This enumeration is not exhaustive. The representation of the enum
/// is not guaranteed.
#[non_exhaustive]
#[derive(Copy, Clone, Debug)]
pub enum ErrorKind {
/// incompatible shape
Expand All @@ -47,8 +48,6 @@ pub enum ErrorKind {
Unsupported,
/// overflow when computing offset, length, etc.
Overflow,
#[doc(hidden)]
__Incomplete,
}

#[inline(always)]
Expand Down Expand Up @@ -81,7 +80,6 @@ impl fmt::Display for ShapeError {
ErrorKind::OutOfBounds => "out of bounds indexing",
ErrorKind::Unsupported => "unsupported operation",
ErrorKind::Overflow => "arithmetic overflow",
ErrorKind::__Incomplete => "this error variant is not in use",
};
write!(f, "ShapeError/{:?}: {}", self.kind(), description)
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -61,7 +61,7 @@
//! needs matching memory layout to be efficient (with some exceptions).
//! + Efficient floating point matrix multiplication even for very large
//! matrices; can optionally use BLAS to improve it further.
//! - **Requires Rust 1.37 or later**
//! - **Requires Rust 1.42 or later**
//!
//! ## Crate Feature Flags
//!
Expand Down
10 changes: 2 additions & 8 deletions src/slice.rs
Expand Up @@ -110,18 +110,12 @@ copy_and_clone! {SliceOrIndex}
impl SliceOrIndex {
/// Returns `true` if `self` is a `Slice` value.
pub fn is_slice(&self) -> bool {
match self {
SliceOrIndex::Slice { .. } => true,
_ => false,
}
matches!(self, SliceOrIndex::Slice { .. })
}

/// Returns `true` if `self` is an `Index` value.
pub fn is_index(&self) -> bool {
match self {
SliceOrIndex::Index(_) => true,
_ => false,
}
matches!(self, SliceOrIndex::Index(_))
}

/// Returns a new `SliceOrIndex` with the given step size (multiplied with
Expand Down
2 changes: 1 addition & 1 deletion src/stacking.rs
Expand Up @@ -165,7 +165,7 @@ where
let mut res = Array::from_shape_vec(res_dim, v)?;

res.axis_iter_mut(axis)
.zip(arrays.into_iter())
.zip(arrays.iter())
.for_each(|(mut assign_view, array)| {
assign_view.assign(&array);
});
Expand Down

0 comments on commit a224232

Please sign in to comment.