Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 758d9a7

Browse files
Fix clippy warnings
1 parent 649fac1 commit 758d9a7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/filesystem.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@ fn test_write_all(location: Location) {
107107
let data =
108108
syscall!(client.read_file_chunk(location, path.clone(), OpenSeekFrom::Start(0))).data;
109109
assert_eq!(&data, &[48; 1024]);
110-
let data =
111-
syscall!(client.read_file_chunk(location, path.clone(), OpenSeekFrom::Start(1024)))
112-
.data;
110+
let data = syscall!(client.read_file_chunk(location, path, OpenSeekFrom::Start(1024))).data;
113111
assert_eq!(&data, &[48; 1234 - 1024]);
114112
});
115113
}
@@ -119,8 +117,7 @@ fn test_write_all_small(location: Location) {
119117
let path = PathBuf::from("foo2");
120118
utils::write_all(client, location, path.clone(), &[48; 1023], None).unwrap();
121119

122-
let data =
123-
syscall!(client.read_file_chunk(location, path.clone(), OpenSeekFrom::Start(0))).data;
120+
let data = syscall!(client.read_file_chunk(location, path, OpenSeekFrom::Start(0))).data;
124121
assert_eq!(&data, &[48; 1023]);
125122
});
126123
}

0 commit comments

Comments
 (0)