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:
parent
5a8bf5624d
commit
dbb3217667
@ -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.");
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user