diff --git a/shared-lib/lib-ot/src/core/document/mod.rs b/shared-lib/lib-ot/src/core/document/mod.rs index 2dde3ef3e9..a0eced6c24 100644 --- a/shared-lib/lib-ot/src/core/document/mod.rs +++ b/shared-lib/lib-ot/src/core/document/mod.rs @@ -1,14 +1,14 @@ #![allow(clippy::module_inception)] mod attributes; -mod document; -mod document_operation; mod node; -mod position; +mod node_tree; +mod operation; +mod path; mod transaction; pub use attributes::*; -pub use document::*; -pub use document_operation::*; pub use node::*; -pub use position::*; +pub use node_tree::*; +pub use operation::*; +pub use path::*; pub use transaction::*; diff --git a/shared-lib/lib-ot/src/core/document/document.rs b/shared-lib/lib-ot/src/core/document/node_tree.rs similarity index 99% rename from shared-lib/lib-ot/src/core/document/document.rs rename to shared-lib/lib-ot/src/core/document/node_tree.rs index ead107fe73..2d1483d59f 100644 --- a/shared-lib/lib-ot/src/core/document/document.rs +++ b/shared-lib/lib-ot/src/core/document/node_tree.rs @@ -1,4 +1,4 @@ -use crate::core::document::position::Path; +use crate::core::document::path::Path; use crate::core::{Node, NodeAttributes, NodeData, NodeOperation, OperationTransform, TextDelta, Transaction}; use crate::errors::{ErrorBuilder, OTError, OTErrorCode}; use indextree::{Arena, Children, FollowingSiblings, NodeId}; diff --git a/shared-lib/lib-ot/src/core/document/document_operation.rs b/shared-lib/lib-ot/src/core/document/operation.rs similarity index 99% rename from shared-lib/lib-ot/src/core/document/document_operation.rs rename to shared-lib/lib-ot/src/core/document/operation.rs index 61d4a63ccd..5096ffec00 100644 --- a/shared-lib/lib-ot/src/core/document/document_operation.rs +++ b/shared-lib/lib-ot/src/core/document/operation.rs @@ -1,4 +1,4 @@ -use crate::core::document::position::Path; +use crate::core::document::path::Path; use crate::core::{Node, NodeAttributes, TextDelta}; #[derive(Clone, serde::Serialize, serde::Deserialize)] diff --git a/shared-lib/lib-ot/src/core/document/position.rs b/shared-lib/lib-ot/src/core/document/path.rs similarity index 100% rename from shared-lib/lib-ot/src/core/document/position.rs rename to shared-lib/lib-ot/src/core/document/path.rs diff --git a/shared-lib/lib-ot/src/core/document/transaction.rs b/shared-lib/lib-ot/src/core/document/transaction.rs index dfc9be4867..755e9419de 100644 --- a/shared-lib/lib-ot/src/core/document/transaction.rs +++ b/shared-lib/lib-ot/src/core/document/transaction.rs @@ -1,4 +1,4 @@ -use crate::core::document::position::Path; +use crate::core::document::path::Path; use crate::core::{Node, NodeAttributes, NodeOperation, NodeTree}; use indextree::NodeId;