Skip to content

Commit 406e7a6

Browse files
Update posts/inside-rust/2024-08-09-async-closures-call-for-testing.md
The only case this can't happen is when inference infers an unnameable type
1 parent 6e806ed commit 406e7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2024-08-09-async-closures-call-for-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ We expect to improve async closure signature inference as we move forward.
119119

120120
Some libraries take their callbacks as function *pointers* (`fn()`) rather than generics. Async closures don't currently implement the same coercion from closure to `fn() -> ...`. Some libraries may mitigate this problem by adapting their API to take generic `impl Fn()` instead of `fn()` pointers as an argument.
121121

122-
We don't expect to implement this coercion unless there's a particularly good reason to support it, since this can always be handled manually by the caller with an inner function item.
122+
We don't expect to implement this coercion unless there's a particularly good reason to support it, since this can usually be handled manually by the caller by using an inner function item.
123123

124124
[RFC 3668]: https://rust-lang.github.io/rfcs/3668-async-closures.html

0 commit comments

Comments
 (0)