From 5397328c78f70e6787802847c39dd0902e901ec8 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Fri, 22 Mar 2024 18:31:19 +0100 Subject: [PATCH] vec2list projection: fix idx in Push --- src/projection/vec2list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projection/vec2list.rs b/src/projection/vec2list.rs index 0548bc2..0711bc3 100644 --- a/src/projection/vec2list.rs +++ b/src/projection/vec2list.rs @@ -69,7 +69,7 @@ where } VecDiff::Push(val) => { self.cast.notify(&ListDiff::Insert{ - idx: self.cur_len + 1, + idx: self.cur_len, val: val.clone() }); self.cur_len += 1;