Skip to content

Commit

Permalink
Make Clippy happy and fix MSRV build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed Aug 7, 2023
1 parent e21665f commit 40bb0b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions scripts/all-tests.sh
Expand Up @@ -9,6 +9,10 @@ CHANNEL=$2
if [ "$CHANNEL" = "1.51.0" ]; then
cargo update --package rayon --precise 1.5.3
cargo update --package rayon-core --precise 1.9.3
cargo update --package quote --precise 1.0.30
cargo update --package proc-macro2 --precise 1.0.65
cargo update --package rmp --precise 0.8.11
cargo update --package serde_json --precise 1.0.99
cargo update --package serde --precise 1.0.156
cargo update --package thiserror --precise 1.0.39
cargo update --package once_cell --precise 1.14.0
Expand Down
2 changes: 1 addition & 1 deletion src/dimension/dimension_trait.rs
Expand Up @@ -90,7 +90,7 @@ pub trait Dimension:
fn size_checked(&self) -> Option<usize> {
self.slice()
.iter()
.fold(Some(1), |s, &a| s.and_then(|s_| s_.checked_mul(a)))
.try_fold(1_usize, |s, &a| s.checked_mul(a))
}

#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion src/zip/ndproducer.rs
@@ -1,7 +1,7 @@
use crate::imp_prelude::*;
use crate::Layout;
use crate::NdIndex;
#[cfg(not(features = "std"))]
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

/// Argument conversion into a producer.
Expand Down

0 comments on commit 40bb0b2

Please sign in to comment.