Skip to content

Commit 925d2d8

Browse files
authored
Update entry.rs (#569)
1 parent e9cac4c commit 925d2d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/macros/src/entry.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ pub fn main(_args: TokenStream, input: TokenStream) -> Result<TokenStream, Error
2323
"`main` function is not allowed to have generic parameters",
2424
));
2525
}
26-
if func.sig.generics.where_clause.is_some() {
26+
if fn_sig.generics.where_clause.is_some() {
2727
return Err(Error::new_spanned(
2828
&fn_sig.generics.where_clause,
2929
"`main` function is not allowed to have a `where` clause",
3030
));
3131
}
32-
if !func.sig.inputs.is_empty() {
32+
if !fn_sig.inputs.is_empty() {
3333
return Err(Error::new_spanned(
3434
&fn_sig.inputs,
3535
"`main` function arguments must each have an associated input handler",
3636
));
3737
}
38-
if let syn::ReturnType::Type(_, _ty) = &func.sig.output {
38+
if let syn::ReturnType::Type(_, _ty) = &fn_sig.output {
3939
return Err(Error::new_spanned(
4040
&fn_sig.output,
4141
"`main` function output must have an associated output handler",

0 commit comments

Comments
 (0)