Remove unnecessary mut.

The value is moved in pin!().
This commit is contained in:
Mara Bos 2025-04-10 12:40:27 +02:00
parent 9d28fe3976
commit 95613e3dbc

View File

@ -26,7 +26,7 @@ use std::async_iter::AsyncIterator;
#[test]
fn general_coroutine() {
let mut coro = #[coroutine] |x: i32| {
let coro = #[coroutine] |x: i32| {
yield x;
"done"
};