Skip to content

Commit

Permalink
Make ChildRef::path and ChildrenRef::path public (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
deontologician authored Feb 10, 2020
1 parent 8f6dc5a commit c4a745c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bastion/src/child_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ impl ChildRef {
&self.sender
}

pub(crate) fn path(&self) -> &Arc<BastionPath> {
/// Returns the [`BastionPath`] of the child
pub fn path(&self) -> &Arc<BastionPath> {
&self.path
}
}
Expand Down
3 changes: 2 additions & 1 deletion bastion/src/children_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ impl ChildrenRef {
.map_err(|err| err.into_inner())
}

pub(crate) fn path(&self) -> &Arc<BastionPath> {
/// Returns the [`BastionPath`] of this ChildrenRef
pub fn path(&self) -> &Arc<BastionPath> {
&self.path
}

Expand Down

0 comments on commit c4a745c

Please sign in to comment.