tglman / persy
Showing 2 of 2 files from the diff.
Newly tracked file
src/transaction.rs changed.
Newly tracked file
src/lib.rs changed.

@@ -445,10 +445,7 @@
Loading
445 445
        K: IndexType,
446 446
        V: IndexType,
447 447
    {
448 -
        for v in self.get(index_name, k)? {
449 -
            return Ok(Some(v));
450 -
        }
451 -
        Ok(None)
448 +
        Ok(self.get(index_name, k)?.next())
452 449
    }
453 450
454 451
    /// Browse a range of keys and values from an index including the transaction changes

@@ -527,10 +527,7 @@
Loading
527 527
        K: IndexType,
528 528
        V: IndexType,
529 529
    {
530 -
        for v in self.get(index_name, k)? {
531 -
          return Ok(Some(v));
532 -
        }
533 -
        Ok(None)
530 +
        Ok(self.get(index_name, k)?.next())
534 531
    }
535 532
536 533
    /// Browse a range of keys and values from and index.
Files Coverage
src 91.81%
tests 98.91%
Project Totals (37 files) 93.11%
Notifications are pending CI completion. Waiting for GitLab's status webhook to queue notifications. Push notifications now.
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