From c4a745c4e1ec0d7b0e83b7e18b2917fd375b1e6b Mon Sep 17 00:00:00 2001 From: Josh Kuhn Date: Mon, 10 Feb 2020 14:17:23 -0800 Subject: [PATCH] Make ChildRef::path and ChildrenRef::path public (#168) --- bastion/src/child_ref.rs | 3 ++- bastion/src/children_ref.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bastion/src/child_ref.rs b/bastion/src/child_ref.rs index 3bc1c1d3..4058b8e6 100644 --- a/bastion/src/child_ref.rs +++ b/bastion/src/child_ref.rs @@ -279,7 +279,8 @@ impl ChildRef { &self.sender } - pub(crate) fn path(&self) -> &Arc { + /// Returns the [`BastionPath`] of the child + pub fn path(&self) -> &Arc { &self.path } } diff --git a/bastion/src/children_ref.rs b/bastion/src/children_ref.rs index fb9ae230..eb29f624 100644 --- a/bastion/src/children_ref.rs +++ b/bastion/src/children_ref.rs @@ -221,7 +221,8 @@ impl ChildrenRef { .map_err(|err| err.into_inner()) } - pub(crate) fn path(&self) -> &Arc { + /// Returns the [`BastionPath`] of this ChildrenRef + pub fn path(&self) -> &Arc { &self.path }