chore: cargo fix

This commit is contained in:
Zixuan Chen 2022-11-29 18:35:48 +08:00
parent d3a0d10b12
commit 94b9e95fc1
5 changed files with 4 additions and 6 deletions

View file

@ -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);
}

View file

@ -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;

View file

@ -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));
}
}

View file

@ -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},

View file

@ -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,