Skip to content

Commit da3adf8

Browse files
committed
Don't warn over the "redundant" call.
This is, unusually, explicitly what we're trying to test.
1 parent 69be5f6 commit da3adf8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lrpar/cttests/src/parseparam_copy.test

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ grammar: |
99
// Since then we relaxed the bounds to require `Clone`.
1010
// This tests backwards compatibility of actions that
1111
// rely on the older copy bounds.
12-
'INT' { (move |_| {})(p); check_copy(p); p + $lexer.span_str($1.unwrap().span()).parse::<u64>().unwrap() }
12+
'INT' {
13+
#[allow(clippy::redundant_closure_call)]
14+
(move |_| {})(p);
15+
check_copy(p);
16+
p + $lexer.span_str($1.unwrap().span()).parse::<u64>().unwrap()
17+
}
1318
;
1419
%%
1520
fn check_copy<T: Copy>(_: T){}

0 commit comments

Comments
 (0)