diff options
Diffstat (limited to 'src/document/replica.rs')
| -rw-r--r-- | src/document/replica.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/document/replica.rs b/src/document/replica.rs index ead42f6..a409969 100644 --- a/src/document/replica.rs +++ b/src/document/replica.rs @@ -385,7 +385,7 @@ pub(crate) const USER_TRAILER: &str = "User"; impl Writer<'_> { /// The change's message: its trailers (`trailers`), if it has any. - fn message(&self) -> Option<String> { + pub(crate) fn message(&self) -> Option<String> { self.user.map(|user| format!("{USER_TRAILER}: {user}")) } } @@ -481,7 +481,7 @@ fn run<T, E>( /// Makes `node` the author of `doc`'s changes from now on. Setting an author gives the /// document a new actor; this node keeps its own (`with_actor`), which it tracks /// (`RemakeState::own_actors`, the document file), as only it writes with it. -fn authored(doc: &mut Document, node: &str) { +pub(crate) fn authored(doc: &mut Document, node: &str) { if doc .get_author() .is_some_and(|author| author.as_bytes() == node.as_bytes()) |
