mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-17 18:40:17 +00:00
silence some redundant closure call warnings caused by macros
This commit is contained in:
parent
9cdc49b9db
commit
e6a154765c
2 changed files with 3 additions and 4 deletions
|
@ -1634,6 +1634,7 @@ macro_rules! word1_check_indent {
|
|||
macro_rules! map {
|
||||
($parser:expr, $transform:expr) => {
|
||||
move |arena, state, min_indent| {
|
||||
#[allow(clippy::redundant_closure_call)]
|
||||
$parser
|
||||
.parse(arena, state, min_indent)
|
||||
.map(|(progress, output, next_state)| (progress, $transform(output), next_state))
|
||||
|
@ -1645,6 +1646,7 @@ macro_rules! map {
|
|||
macro_rules! map_with_arena {
|
||||
($parser:expr, $transform:expr) => {
|
||||
move |arena, state, min_indent| {
|
||||
#[allow(clippy::redundant_closure_call)]
|
||||
$parser
|
||||
.parse(arena, state, min_indent)
|
||||
.map(|(progress, output, next_state)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue