diff --git a/crates/loro-core/src/container/text/text_container.rs b/crates/loro-core/src/container/text/text_container.rs index b2b34c5e..5b24079c 100644 --- a/crates/loro-core/src/container/text/text_container.rs +++ b/crates/loro-core/src/container/text/text_container.rs @@ -336,7 +336,7 @@ impl Container for TextContainer { &mut self, _: &mut Hierarchy, rich_op: &RichOp, - import_context: &mut ImportContext, + _import_context: &mut ImportContext, ) { self.tracker.track_apply(rich_op); } diff --git a/crates/loro-core/src/lib.rs b/crates/loro-core/src/lib.rs index 22e5c03c..bddd5bea 100644 --- a/crates/loro-core/src/lib.rs +++ b/crates/loro-core/src/lib.rs @@ -40,7 +40,6 @@ pub(crate) use op::{ContentType, InsertContentTrait, Op}; // TODO: rename as Key? pub(crate) type InternalString = DefaultAtom; pub(crate) use container::Container; -pub(crate) use log_store::ImportContext; pub use container::{list::List, map::Map, text::Text, ContainerType}; pub use log_store::LogStore; diff --git a/crates/loro-core/src/log_store.rs b/crates/loro-core/src/log_store.rs index 8d1b7442..1ab88fab 100644 --- a/crates/loro-core/src/log_store.rs +++ b/crates/loro-core/src/log_store.rs @@ -109,7 +109,7 @@ impl LogStore { for span in diff.left.iter() { let changes = self.get_changes_slice(span.id_span()); for change in changes.iter() { - let vec = ans.entry(change.id.client_id).or_insert_with(|| Vec::new()); + let vec = ans.entry(change.id.client_id).or_insert_with(Vec::new); vec.push(self.change_to_export_format(change)); } } diff --git a/crates/loro-core/src/loro.rs b/crates/loro-core/src/loro.rs index a0e78360..85d65c48 100644 --- a/crates/loro-core/src/loro.rs +++ b/crates/loro-core/src/loro.rs @@ -2,10 +2,10 @@ use std::sync::{Arc, RwLock}; use crate::LoroValue; use fxhash::FxHashMap; -use rle::RleVecWithIndex; + use crate::{ - change::{Change, ChangeMergeCfg}, + change::{Change}, configure::Configure, container::{list::List, map::Map, text::Text, ContainerIdRaw, ContainerType}, event::{Observer, SubscriptionID}, diff --git a/crates/loro-core/src/value.rs b/crates/loro-core/src/value.rs index d1ddc501..4039765d 100644 --- a/crates/loro-core/src/value.rs +++ b/crates/loro-core/src/value.rs @@ -6,7 +6,6 @@ use serde::{de::VariantAccess, ser::SerializeStruct, Deserialize, Serialize}; use crate::{ container::{registry::ContainerRegistry, ContainerID}, - context::Context, delta::DeltaItem, event::{Diff, Index, Path}, Container,