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)?;
Files Coverage
src 93.41%
tests 99.13%
Project Totals (30 files) 94.46%
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 80%
6
        threshold: 1.0%
7
    patch: off
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.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading