From ba8d6d1e4ea2590b31470171efc175b0301c5e1c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Nov 2020 16:31:38 +0100 Subject: Remove more unreachable pubs --- crates/mbe/src/subtree_source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mbe') diff --git a/crates/mbe/src/subtree_source.rs b/crates/mbe/src/subtree_source.rs index 38237cdcf..ccc56c479 100644 --- a/crates/mbe/src/subtree_source.rs +++ b/crates/mbe/src/subtree_source.rs @@ -21,7 +21,7 @@ pub(crate) struct SubtreeTokenSource<'a> { impl<'a> SubtreeTokenSource<'a> { // Helper function used in test #[cfg(test)] - pub fn text(&self) -> SmolStr { + pub(crate) fn text(&self) -> SmolStr { match *self.get(self.curr.1) { Some(ref tt) => tt.text.clone(), _ => SmolStr::new(""), -- cgit v1.2.3