File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments