Skip to content

Commit 6d2805a

Browse files
committed
Add [memmap::MmapMut::flush] call just to make sure the changes apply
1 parent 3b2790c commit 6d2805a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/toc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ impl Taboc {
240240
target_file.write_all(input.as_bytes())?;
241241
#[cfg(feature = "memmap2")]
242242
target_file.write_all(rest)?;
243+
#[cfg(feature = "memmap2")]
244+
rest_map.flush()?;
243245
#[cfg(not(feature = "memmap2"))]
244246
target_file.write_all(&rest)?;
245247

0 commit comments

Comments
 (0)