mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-08 13:30:14 +00:00
chore: fix warning
This commit is contained in:
parent
e2c59f9d10
commit
fd42009c09
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
container::richtext::richtext_state::{unicode_to_utf8_index, utf16_to_utf8_index},
|
container::richtext::richtext_state::{unicode_to_utf8_index, utf16_to_utf8_index},
|
||||||
delta::{Delta, DeltaItem, Meta, StyleMeta},
|
delta::{Delta, DeltaItem, Meta, StyleMeta},
|
||||||
|
@ -493,7 +492,7 @@ impl ApplyDiff for LoroValue {
|
||||||
let list = l.make_mut();
|
let list = l.make_mut();
|
||||||
let Some(map) = list.iter_mut().find(|x| {
|
let Some(map) = list.iter_mut().find(|x| {
|
||||||
let id = x.as_map().unwrap().get("id").unwrap().as_string().unwrap();
|
let id = x.as_map().unwrap().get("id").unwrap().as_string().unwrap();
|
||||||
id.as_ref() == &tree_id.to_string()
|
id.as_ref() == tree_id.to_string()
|
||||||
}) else {
|
}) else {
|
||||||
// delete node first
|
// delete node first
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue