From c798662dd1604c7aa87a5a035258a865d000e52d Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Thu, 24 Nov 2022 01:13:36 +0800 Subject: [PATCH] fix: list assert err --- crates/loro-core/src/container/list/list_container.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/loro-core/src/container/list/list_container.rs b/crates/loro-core/src/container/list/list_container.rs index d1e2f362..6feb1a30 100644 --- a/crates/loro-core/src/container/list/list_container.rs +++ b/crates/loro-core/src/container/list/list_container.rs @@ -95,10 +95,6 @@ impl ListContainer { } fn insert_value(&mut self, ctx: &C, pos: usize, value: LoroValue) -> Option { - assert!( - value.as_unresolved().is_none(), - "To insert a container to list, you should use insert_obj method or insert a prelim type to the list" - ); let store = ctx.log_store(); let mut store = store.write().unwrap(); let id = store.next_id();