mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 04:45:46 +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::{
|
||||
container::richtext::richtext_state::{unicode_to_utf8_index, utf16_to_utf8_index},
|
||||
delta::{Delta, DeltaItem, Meta, StyleMeta},
|
||||
|
@ -493,7 +492,7 @@ impl ApplyDiff for LoroValue {
|
|||
let list = l.make_mut();
|
||||
let Some(map) = list.iter_mut().find(|x| {
|
||||
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 {
|
||||
// delete node first
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue