Skip to content

Commit 3122126

Browse files
committed
Delete flushes on fwrite
1 parent 7f7c788 commit 3122126

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

libcc2rs/src/io.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ pub fn fwrite_refcount(a0: AnyPtr, a1: u64, a2: u64, a3: Ptr<::std::fs::File>) -
162162
written_bytes += off;
163163
}
164164

165-
std::io::Write::flush(&mut writer).expect("flush failed");
166-
167165
(written_bytes / a1 as usize) as u64
168166
}
169167

@@ -214,8 +212,6 @@ pub unsafe fn fwrite_unsafe(
214212
written_bytes += off;
215213
}
216214

217-
std::io::Write::flush(&mut writer).expect("flush failed");
218-
219215
(written_bytes / a1 as usize) as u64
220216
}
221217

0 commit comments

Comments
 (0)