E0067

E0067#

Warning name: unused_async

Useless async annotation.

This warning is emitted when an async annotation is redundant. Remove the redundant async keyword to keep code concise.

Erroneous example#

async fn add(a : Int, b : Int) -> Int {
  a + b
}

Suggestion#

Remove the redundant async annotation:

fn add(a : Int, b : Int) -> Int {
  a + b
}