Remove unnecessary mut
.
The value is moved in pin!().
This commit is contained in:
parent
9d28fe3976
commit
95613e3dbc
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue