2 Checks for functions that are declared `async` but have no `.await`s inside of them.
5 Async functions with no async code create overhead, both mentally and computationally.
6 Callers of async methods either need to be calling from an async function themselves or run it on an executor, both of which
7 causes runtime overhead and hassle for the caller.
11 async fn get_random_number() -> i64 {
12 4 // Chosen by fair dice roll. Guaranteed to be random.
14 let number_future = get_random_number();
19 fn get_random_number_improved() -> i64 {
20 4 // Chosen by fair dice roll. Guaranteed to be random.
22 let number_future = async { get_random_number_improved() };