Skip to content

Commit 8ec6c3d

Browse files
test: remove unnecessary trailing expression
1 parent f7a1cf9 commit 8ec6c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/redundant_closure_call_early.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ fn main() {
2121

2222
// don't lint
2323
async fn issue_11357() {
24-
let x = (|| async { () })().await;
24+
let x = (|| async {})().await;
2525
}

0 commit comments

Comments
 (0)