src/discref.rs
changed.
Showing 1 of 1 files from the diff.
@@ -344,8 +344,10 @@
Loading
344 | 344 | fl.seek(SeekFrom::Start(page + 2))?; |
|
345 | 345 | // Free pages are a linked list reading the next page and return |
|
346 | 346 | let next = fl.read_u64()?; |
|
347 | - | fl.seek(SeekFrom::Start(next + 10))?; |
|
348 | - | fl.write_u64(0)?; |
|
347 | + | if next != 0 { |
|
348 | + | fl.seek(SeekFrom::Start(next + 10))?; |
|
349 | + | fl.write_u64(0)?; |
|
350 | + | } |
|
349 | 351 | fl.seek(SeekFrom::Start(page + 1))?; |
|
350 | 352 | let mut moderator = fl.read_u8()?; |
|
351 | 353 | moderator = free_flag_set(moderator, false); |
@@ -557,8 +559,10 @@
Loading
557 | 559 | let mut next_data = [0u8; 8]; |
|
558 | 560 | self.file.read_exact_at(&mut next_data, page + 2)?; |
|
559 | 561 | let next_page = read_u64(&next_data); |
|
560 | - | let prev_data = [0u8; 8]; |
|
561 | - | self.file.write_all_at(&prev_data, next_page + 10)?; |
|
562 | + | if next_page != 0 { |
|
563 | + | let prev_data = [0u8; 8]; |
|
564 | + | self.file.write_all_at(&prev_data, next_page + 10)?; |
|
565 | + | } |
|
562 | 566 | // Free pages are a linked list reading the next page and return |
|
563 | 567 | let mut mitigator = [0u8]; |
|
564 | 568 | self.file.read_exact_at(&mut mitigator, page + 1)?; |
966723082
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.