From 18229bd41bf65342e7b89411d696d76a9a039c03 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Wed, 19 Oct 2022 14:19:48 +0800 Subject: [PATCH] refactor: rename yata to yata_impl --- crates/loro-core/examples/test.rs | 2 +- crates/loro-core/src/container/text/tracker.rs | 6 +++--- .../src/container/text/tracker/{yata.rs => yata_impl.rs} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename crates/loro-core/src/container/text/tracker/{yata.rs => yata_impl.rs} (100%) diff --git a/crates/loro-core/examples/test.rs b/crates/loro-core/examples/test.rs index 8cd9eba6..eaa5df70 100644 --- a/crates/loro-core/examples/test.rs +++ b/crates/loro-core/examples/test.rs @@ -5,7 +5,7 @@ fn main() {} fn main() { use crdt_list::test; use crdt_list::test::Action::*; - use loro_core::container::text::tracker::yata::YataImpl; + use loro_core::container::text::tracker::yata_impl::YataImpl; let mut actions = vec![]; for i in 0..500_usize { actions.push(if i % 2 == 0 { diff --git a/crates/loro-core/src/container/text/tracker.rs b/crates/loro-core/src/container/text/tracker.rs index 3e83d67f..f47796d4 100644 --- a/crates/loro-core/src/container/text/tracker.rs +++ b/crates/loro-core/src/container/text/tracker.rs @@ -1,7 +1,7 @@ use rle::HasLength; use crate::{ - container::{list::list_op::ListOp, text::tracker::yata::YataImpl}, + container::{list::list_op::ListOp, text::tracker::yata_impl::YataImpl}, id::{Counter, ID}, op::Op, span::IdSpan, @@ -18,9 +18,9 @@ mod content_map; mod cursor_map; mod y_span; #[cfg(not(feature = "fuzzing"))] -mod yata; +mod yata_impl; #[cfg(feature = "fuzzing")] -pub mod yata; +pub mod yata_impl; /// A tracker for a single text, we can use it to calculate the effect of an operation on a text. /// diff --git a/crates/loro-core/src/container/text/tracker/yata.rs b/crates/loro-core/src/container/text/tracker/yata_impl.rs similarity index 100% rename from crates/loro-core/src/container/text/tracker/yata.rs rename to crates/loro-core/src/container/text/tracker/yata_impl.rs