Skip to content

Commit 994c67f

Browse files
Fix clippy warnings
1 parent 997720f commit 994c67f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/filesystem.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ fn iterating(location: Location) {
7777
assert_eq!(entry.path().as_ref(), f);
7878
}
7979

80-
for j in i + 1..count {
80+
for file in &files[i + 1..count] {
8181
let entry = syscall!(client.read_dir_next()).entry.unwrap();
82-
assert_eq!(entry.path().as_ref(), &files[j]);
82+
assert_eq!(entry.path().as_ref(), file);
8383
}
8484
assert!(syscall!(client.read_dir_next()).entry.is_none());
8585
}
@@ -93,9 +93,9 @@ fn iterating(location: Location) {
9393
assert_eq!(data, f.as_bytes());
9494
}
9595

96-
for j in i + 1..count {
96+
for file in &files[i + 1..count] {
9797
let data = syscall!(client.read_dir_files_next()).data.unwrap();
98-
assert_eq!(data, files[j].as_bytes());
98+
assert_eq!(data, file.as_bytes());
9999
}
100100
assert!(syscall!(client.read_dir_files_next()).data.is_none());
101101
}

0 commit comments

Comments
 (0)