mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 21:07:43 +00:00
chore: fix warning - rm a redundant field
This commit is contained in:
parent
ea5f91f6a6
commit
5f70310681
1 changed files with 0 additions and 4 deletions
|
@ -241,7 +241,6 @@ trait HistoryCacheTrait {
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub(crate) struct GroupedMapOpInfo<T = Option<LoroValue>> {
|
pub(crate) struct GroupedMapOpInfo<T = Option<LoroValue>> {
|
||||||
pub(crate) value: T,
|
pub(crate) value: T,
|
||||||
pub(crate) counter: Counter,
|
|
||||||
pub(crate) lamport: Lamport,
|
pub(crate) lamport: Lamport,
|
||||||
pub(crate) peer: PeerID,
|
pub(crate) peer: PeerID,
|
||||||
}
|
}
|
||||||
|
@ -343,7 +342,6 @@ impl MapHistoryCache {
|
||||||
self.keys.get_value(entry.key as usize).unwrap().clone(),
|
self.keys.get_value(entry.key as usize).unwrap().clone(),
|
||||||
GroupedMapOpInfo {
|
GroupedMapOpInfo {
|
||||||
value: map.value.clone(),
|
value: map.value.clone(),
|
||||||
counter: id.counter,
|
|
||||||
lamport: entry.lamport,
|
lamport: entry.lamport,
|
||||||
peer: entry.peer,
|
peer: entry.peer,
|
||||||
},
|
},
|
||||||
|
@ -477,7 +475,6 @@ impl MovableListHistoryCache {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Some(GroupedMapOpInfo {
|
Some(GroupedMapOpInfo {
|
||||||
value,
|
value,
|
||||||
counter: id.counter,
|
|
||||||
lamport: key.lamport,
|
lamport: key.lamport,
|
||||||
peer: id.peer,
|
peer: id.peer,
|
||||||
})
|
})
|
||||||
|
@ -496,7 +493,6 @@ impl MovableListHistoryCache {
|
||||||
InnerContent::List(InnerListOp::Set { value, .. }) => {
|
InnerContent::List(InnerListOp::Set { value, .. }) => {
|
||||||
Some(GroupedMapOpInfo {
|
Some(GroupedMapOpInfo {
|
||||||
value: value.clone(),
|
value: value.clone(),
|
||||||
counter: id.counter,
|
|
||||||
lamport,
|
lamport,
|
||||||
peer: id.peer,
|
peer: id.peer,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue