Skip to content

Commit 1746487

Browse files
committed
Auto merge of #102692 - nnethercote:TokenStreamBuilder, r=Aaron1011
Remove `TokenStreamBuilder` `TokenStreamBuilder` is used to combine multiple token streams. It can be removed, leaving the code a little simpler and a little faster. r? `@Aaron1011`
2 parents 84cdee7 + 7543dfa commit 1746487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proc_macro/src/bridge/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ pub(crate) use super::symbol::Symbol;
223223

224224
macro_rules! define_client_side {
225225
($($name:ident {
226-
$(fn $method:ident($($arg:ident: $arg_ty:ty),* $(,)?) $(-> $ret_ty:ty)*;)*
226+
$(fn $method:ident($($arg:ident: $arg_ty:ty),* $(,)?) $(-> $ret_ty:ty)?;)*
227227
}),* $(,)?) => {
228228
$(impl $name {
229-
$(pub(crate) fn $method($($arg: $arg_ty),*) $(-> $ret_ty)* {
229+
$(pub(crate) fn $method($($arg: $arg_ty),*) $(-> $ret_ty)? {
230230
Bridge::with(|bridge| {
231231
let mut buf = bridge.cached_buffer.take();
232232

0 commit comments

Comments
 (0)