Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Apr 6, 2023
1 parent 997720f commit 994c67f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ fn iterating(location: Location) {
assert_eq!(entry.path().as_ref(), f);
}

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

for j in i + 1..count {
for file in &files[i + 1..count] {
let data = syscall!(client.read_dir_files_next()).data.unwrap();
assert_eq!(data, files[j].as_bytes());
assert_eq!(data, file.as_bytes());
}
assert!(syscall!(client.read_dir_files_next()).data.is_none());
}
Expand Down

0 comments on commit 994c67f

Please sign in to comment.