chore: bump loro rust to v0.2.1

This commit is contained in:
Zixuan Chen 2023-11-28 22:22:09 +08:00
parent 22cf71a759
commit 1eae5ea495
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -906,7 +906,7 @@ dependencies = [
[[package]]
name = "loro-internal"
version = "0.1.0"
version = "0.2.1"
dependencies = [
"append-only-bytes",
"arbitrary",

View file

@ -1,6 +1,6 @@
[package]
name = "loro-internal"
version = "0.1.0"
version = "0.2.1"
edition = "2021"
license = "MIT"
description = "Loro internal library. Do not use it directly as it's not stable."

View file

@ -12,7 +12,7 @@ keywords = ["crdt", "local-first"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
loro-internal = { path = "../loro-internal", version = "0.1.0" }
loro-internal = { path = "../loro-internal", version = "0.2.1" }
enum-as-inner = "0.6.0"
[dev-dependencies]

View file

@ -502,7 +502,7 @@ impl TreeHandler {
/// tree.mov(root2, root).unwrap();
/// ```
pub fn mov<T: Into<Option<TreeID>>>(&self, target: TreeID, parent: T) -> LoroResult<()> {
self.handler.mov(target, parent)
self.handler.mov(target, parent.into())
}
/// Delete a tree node.