chore: fix warning

This commit is contained in:
Zixuan Chen 2024-11-04 16:49:10 +08:00
parent e2c59f9d10
commit fd42009c09
No known key found for this signature in database

View file

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