diff options
Diffstat (limited to 'src/stable_vec.rs')
| -rw-r--r-- | src/stable_vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stable_vec.rs b/src/stable_vec.rs index c3b8685..4d25e0e 100644 --- a/src/stable_vec.rs +++ b/src/stable_vec.rs @@ -55,7 +55,7 @@ impl<T> StableVec<T> { if self.data.is_empty() { 0 } else if self.data.last().unwrap().0 < usize::MAX { - self.data.last().unwrap().0 + self.data.last().unwrap().0 + 1 } else { // Try to find a position in the vector that is still free, starting at the bottom. let mut prev_id = self.data.first().unwrap().0; |
