mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-29 15:04:32 +01:00
binds
can only appear once in the argument list
This commit is contained in:
parent
e167af01f0
commit
2fd6ae69d1
1 changed files with 7 additions and 0 deletions
|
@ -973,6 +973,13 @@ fn parse_args(
|
|||
let ident_s = ident.to_string();
|
||||
match &*ident_s {
|
||||
"binds" if accepts_binds => {
|
||||
if binds.is_some() {
|
||||
return Err(parse::Error::new(
|
||||
ident.span(),
|
||||
"argument appears more than once",
|
||||
));
|
||||
}
|
||||
|
||||
// #ident
|
||||
let ident = content.parse()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue