1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-06 00:44:23 +02:00

std::mem::drop is in the prelude (#1026)

This commit is contained in:
Martin Geisler 2023-07-24 21:03:19 +02:00 committed by GitHub
parent 5a8bf5624d
commit dbb3217667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ async fn main() {
println!("Sent {} pings so far.", i + 1);
}
std::mem::drop(sender);
drop(sender);
ping_handler_task.await.expect("Something went wrong in ping handler task.");
}
```