Skip to content

Commit 7f939f0

Browse files
committed
Return a Range from values_since_snapshot
1 parent 38fcb1c commit 7f939f0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/unify/backing_vec.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#[cfg(feature = "persistent")]
22
use dogged::DVec;
33
use snapshot_vec as sv;
4-
use std::ops;
5-
use std::ops::RangeInclusive;
4+
use std::ops::{self, Range};
65
use std::marker::PhantomData;
76

87
use super::{VarValue, UnifyKey, UnifyValue};
@@ -31,8 +30,8 @@ pub trait UnificationStore:
3130

3231
fn commit(&mut self, snapshot: Self::Snapshot);
3332

34-
fn values_since_snapshot(&mut self, snapshot: &Self::Snapshot) -> RangeInclusive<usize> {
35-
snapshot.len()..=self.len()
33+
fn values_since_snapshot(&self, snapshot: &Self::Snapshot) -> Range<usize> {
34+
snapshot.len()..self.len()
3635
}
3736

3837
fn reset_unifications(

0 commit comments

Comments
 (0)