mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-23 13:39:12 +00:00
perf: remove needless change copy when importing
This commit is contained in:
parent
ff9877db42
commit
f6adb76436
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ impl ContainerWrapper for Text {
|
||||||
F: FnOnce(&mut Self::Container) -> R,
|
F: FnOnce(&mut Self::Container) -> R,
|
||||||
{
|
{
|
||||||
let mut container_instance = self.instance.lock().unwrap();
|
let mut container_instance = self.instance.lock().unwrap();
|
||||||
let map = container_instance.as_text_mut().unwrap();
|
let text = container_instance.as_text_mut().unwrap();
|
||||||
f(map)
|
f(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue