diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2025-01-10 10:15:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 10:15:15 +0100 |
commit | 2344c4e4b89dcb57c021459140c3914faa4df603 (patch) | |
tree | 484a868167e4c02704234418d1121c7f638e929d /candle-core/src | |
parent | 32defdb7d5c30b22f22e65a5af20b4558d626ec1 (diff) | |
download | candle-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.rs | 5 |
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 |