We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3780d33 commit e53e0e2Copy full SHA for e53e0e2
compio-macros/src/main_fn.rs
@@ -29,12 +29,6 @@ impl Parse for CompioMain {
29
"the `async` keyword is missing from the function declaration",
30
));
31
};
32
- if sig.ident != Ident::new("main", Span::call_site()) {
33
- return Err(syn::Error::new_spanned(
34
- sig.ident,
35
- "`compio::main` can only be used for main function.",
36
- ));
37
- }
38
39
sig.asyncness.take();
40
Ok(Self(RawBodyItemFn::new(attrs, vis, sig, body)))
0 commit comments