WUFFS
WUFFS
Posted Aug 16, 2024 13:07 UTC (Fri) by mb (subscriber, #50428)In reply to: WUFFS by excors
Parent article: Standards for use of unsafe Rust in the kernel
>I think it has made a good choice.
Yeah, it's ok-ish most of the time.
Except for the case of move-capturing blocks. Passing an Arc clone to multiple async-move blocks is awkward.
It basically means cloning the Arc to a different name and then moving that name into the async block.
Which typically results in names such as foo2 or foo_cloned.
(Name shadowing is also possible in some cases.)
I think this is on the current list of things to be improved. But I'm not sure what an elegant solution would look like.
