Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Clippy happy and fix MSRV build #1320

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/all-tests.sh
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Loading