Skip to content

Commit 3adff18

Browse files
Merge pull request #969 from LaurentMazare/clippy-fixes2
Clippy fixes.
2 parents 6ef7031 + 454bcaa commit 3adff18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensor/npy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Header {
7272
let mut parts: Vec<String> = vec![];
7373
let mut start_index = 0usize;
7474
let mut cnt_parenthesis = 0i64;
75-
for (index, c) in header.chars().enumerate() {
75+
for (index, c) in header.char_indices() {
7676
match c {
7777
'(' => cnt_parenthesis += 1,
7878
')' => cnt_parenthesis -= 1,

0 commit comments

Comments
 (0)