Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs')
| -rw-r--r-- | crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs b/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs index 9a31f2ebf8..c8bf2ecdd3 100644 --- a/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs +++ b/crates/proc-macro-srv/src/abis/abi_sysroot/ra_server/token_stream.rs @@ -163,20 +163,15 @@ pub mod token_stream { } impl TokenStreamBuilder { - fn new() -> TokenStreamBuilder { + pub(super) fn new() -> TokenStreamBuilder { TokenStreamBuilder { acc: TokenStream::new() } } - fn push(&mut self, stream: TokenStream) { + pub(super) fn push(&mut self, stream: TokenStream) { self.acc.extend(stream.into_iter()) } - fn build(self) -> TokenStream { + pub(super) fn build(self) -> TokenStream { self.acc } } - -#[derive(Clone)] -pub struct TokenStreamIter { - trees: std::vec::IntoIter<TokenTree>, -} |