From 994c67f730dd21c6cae45db24d3cebf1ba52ecac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 6 Apr 2023 16:18:10 +0200 Subject: [PATCH] Fix clippy warnings --- tests/filesystem.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/filesystem.rs b/tests/filesystem.rs index d3cadff84b6..b489f694abc 100644 --- a/tests/filesystem.rs +++ b/tests/filesystem.rs @@ -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()); } @@ -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()); }