aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-05-28 03:55:08 +0100
committerEdwin Cheng <[email protected]>2019-05-28 03:55:08 +0100
commit464a00814cf604a57c77ce456d1ca2677eb4e61a (patch)
tree4d5ff1bdb605a7b644369b1dc755814a0208afdd /crates/ra_mbe/src
parenta3b9aecc9b51f4d02cdcfb00fd5d8b031eff8a56 (diff)
Use cfg(test) instead of allow(unused)
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r--crates/ra_mbe/src/subtree_source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/subtree_source.rs b/crates/ra_mbe/src/subtree_source.rs
index 8d6fd3e43..7647e16d8 100644
--- a/crates/ra_mbe/src/subtree_source.rs
+++ b/crates/ra_mbe/src/subtree_source.rs
@@ -18,7 +18,7 @@ pub(crate) struct SubtreeTokenSource<'a> {
18 18
19impl<'a> SubtreeTokenSource<'a> { 19impl<'a> SubtreeTokenSource<'a> {
20 // Helper function used in test 20 // Helper function used in test
21 #[allow(unused)] 21 #[cfg(test)]
22 pub fn text(&self) -> SmolStr { 22 pub fn text(&self) -> SmolStr {
23 match self.get(self.curr.1) { 23 match self.get(self.curr.1) {
24 Some(tt) => tt.text, 24 Some(tt) => tt.text,