fix(macros): fix checked = false being ignored

for arguments

Signed-off-by: Austin Bonander <austin@launchbadge.com>
This commit is contained in:
Austin Bonander 2020-07-23 19:53:08 -07:00
parent 67ad43491d
commit 4da66c9200
No known key found for this signature in database
GPG Key ID: 4E7DA63E66AFC37E

View File

@ -38,6 +38,11 @@ pub fn quote_args<DB: DatabaseExt>(
TokenStream::new()
}
Some(Either::Left(_)) if !input.checked => {
// this is an `*_unchecked!()` macro invocation
TokenStream::new()
}
Some(Either::Left(params)) => {
params
.iter()