Skip to content

Commit ed6f481

Browse files
committed
A tiny fix for define_client_side.
The return type can only appear once.
1 parent 1e848a5 commit ed6f481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/proc_macro/src/bridge/client.rs

+2-2
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)