aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_proc_macro_srv/src/rustc_server.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_proc_macro_srv/src/rustc_server.rs b/crates/ra_proc_macro_srv/src/rustc_server.rs
index 76e6a2752..92d1fd989 100644
--- a/crates/ra_proc_macro_srv/src/rustc_server.rs
+++ b/crates/ra_proc_macro_srv/src/rustc_server.rs
@@ -33,9 +33,7 @@ impl TokenStream {
33 pub fn new() -> Self { 33 pub fn new() -> Self {
34 TokenStream { subtree: Default::default() } 34 TokenStream { subtree: Default::default() }
35 } 35 }
36 pub fn with_subtree(subtree: tt::Subtree) -> Self { 36
37 TokenStream { subtree }
38 }
39 pub fn is_empty(&self) -> bool { 37 pub fn is_empty(&self) -> bool {
40 self.subtree.token_trees.is_empty() 38 self.subtree.token_trees.is_empty()
41 } 39 }