Require 1 argument in embassy::main without HAL
This commit is contained in:
parent
b578e060d7
commit
c53b2fdc05
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ pub fn run(args: syn::AttributeArgs, f: syn::ItemFn) -> Result<TokenStream, Toke
|
|||
ctxt.error_spanned_by(&f.sig, "main function must have 2 arguments");
|
||||
}
|
||||
if HAL.is_none() && fargs.len() != 1 {
|
||||
ctxt.error_spanned_by(&f.sig, "main function must have 2 arguments");
|
||||
ctxt.error_spanned_by(&f.sig, "main function must have 1 argument");
|
||||
}
|
||||
|
||||
ctxt.check()?;
|
||||
|
|
Loading…
Reference in a new issue