Skip to content

Commit 2c82694

Browse files
authored
Fix test
1 parent 3bcab64 commit 2c82694

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/pass/shims/fs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ fn test_pread_pwrite() {
317317
f.write_all(b"hello world").unwrap();
318318

319319
let mut buf1 = [0u8; 3];
320-
f.seek(SeekFrom::Start(5));
320+
f.seek(SeekFrom::Start(5)).unwrap();
321321

322322
// Check that we get expected result after seek
323323
f.read_exact(&mut buf1).unwrap();
324324
assert_eq!(&buf1, b" wo");
325-
f.seek(SeekFrom::Start(5));
325+
f.seek(SeekFrom::Start(5)).unwrap();
326326

327327
f.read_exact_at(&mut buf1, 2).unwrap();
328328
assert_eq!(&buf1, b"llo");
@@ -332,7 +332,7 @@ fn test_pread_pwrite() {
332332
// Ensure that cursor position is not changed
333333
f.read_exact(&mut buf1).unwrap();
334334
assert_eq!(&buf1, b" wo");
335-
f.seek(SeekFrom::Start(5));
335+
f.seek(SeekFrom::Start(5)).unwrap();
336336

337337
f.write_all_at(b" mo", 6).unwrap();
338338

0 commit comments

Comments
 (0)