Skip to content

Commit b578f38

Browse files
committed
fixup! deduplication
1 parent 3ef9f24 commit b578f38

File tree

2 files changed

+403
-142
lines changed

2 files changed

+403
-142
lines changed

crates/matrix-sdk/src/event_cache/linked_chunk/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,11 @@ impl Position {
948948
self.1
949949
}
950950

951+
/// Move the index part (see [`Self::index`]) to the left, i.e. subtract 1.
952+
///
953+
/// # Panic
954+
///
955+
/// This method will panic if it will overflow, i.e. if the index is 0.
951956
pub(super) fn move_index_to_the_left(&mut self) {
952957
self.1 = self
953958
.1

0 commit comments

Comments
 (0)