File tree 1 file changed +0
-4
lines changed
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -205,18 +205,15 @@ fn file_test_io_seek_and_write() {
205
205
let overwrite_msg = "-the-bar!!" ;
206
206
let final_msg = "foo-the-bar!!" ;
207
207
let seek_idx = 3 ;
208
-
209
208
let mut read_mem = [ 0 ; 13 ] ;
210
209
let tmpdir = tmpdir ( ) ;
211
210
let filename = & tmpdir. join ( "file_rt_io_file_test_seek_and_write.txt" ) ;
212
211
{
213
212
let mut rw_stream = check ! ( File :: create( filename) ) ;
214
-
215
213
check ! ( rw_stream. write( initial_msg. as_bytes( ) ) ) ;
216
214
check ! ( rw_stream. seek( SeekFrom :: Start ( seek_idx) ) ) ;
217
215
check ! ( rw_stream. write( overwrite_msg. as_bytes( ) ) ) ;
218
216
}
219
-
220
217
{
221
218
let mut read_stream = check ! ( File :: open( filename) ) ;
222
219
check ! ( read_stream. read( & mut read_mem) ) ;
@@ -230,7 +227,6 @@ fn file_test_io_seek_and_write() {
230
227
fn file_test_io_seek_shakedown ( ) {
231
228
// 01234567890123
232
229
let initial_msg = "qwer-asdf-zxcv" ;
233
-
234
230
let chunk_one: & str = "qwer" ;
235
231
let chunk_two: & str = "asdf" ;
236
232
let chunk_three: & str = "zxcv" ;
You can’t perform that action at this time.
0 commit comments