summaryrefslogtreecommitdiff
path: root/candle-core/src
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2025-01-10 10:15:15 +0100
committerGitHub <noreply@github.com>2025-01-10 10:15:15 +0100
commit2344c4e4b89dcb57c021459140c3914faa4df603 (patch)
tree484a868167e4c02704234418d1121c7f638e929d /candle-core/src
parent32defdb7d5c30b22f22e65a5af20b4558d626ec1 (diff)
downloadcandle-2344c4e4b89dcb57c021459140c3914faa4df603.tar.gz
candle-2344c4e4b89dcb57c021459140c3914faa4df603.tar.bz2
candle-2344c4e4b89dcb57c021459140c3914faa4df603.zip
Clippy fixes for 1.84. (#2710)
Diffstat (limited to 'candle-core/src')
-rw-r--r--candle-core/src/strided_index.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/candle-core/src/strided_index.rs b/candle-core/src/strided_index.rs
index 9354e8ea..92734b84 100644
--- a/candle-core/src/strided_index.rs
+++ b/candle-core/src/strided_index.rs
@@ -36,10 +36,7 @@ impl Iterator for StridedIndex<'_> {
type Item = usize;
fn next(&mut self) -> Option<Self::Item> {
- let storage_index = match self.next_storage_index {
- None => return None,
- Some(storage_index) => storage_index,
- };
+ let storage_index = self.next_storage_index?;
let mut updated = false;
let mut next_storage_index = storage_index;
for ((multi_i, max_i), stride_i) in self