Skip to content

Commit c2973c9

Browse files
author
The Miri Cronjob Bot
committed
fmt
1 parent 55e2c01 commit c2973c9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/tools/miri/tests/pass/async-drop.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#![allow(incomplete_features, dead_code)]
1111

1212
// FIXME(zetanumbers): consider AsyncDestruct::async_drop cleanup tests
13-
use core::future::{async_drop_in_place, AsyncDrop, Future};
13+
use core::future::{AsyncDrop, Future, async_drop_in_place};
1414
use core::hint::black_box;
1515
use core::mem::{self, ManuallyDrop};
16-
use core::pin::{pin, Pin};
16+
use core::pin::{Pin, pin};
1717
use core::task::{Context, Poll, Waker};
1818

1919
async fn test_async_drop<T>(x: T) {
@@ -200,11 +200,7 @@ union AsyncUnion {
200200

201201
impl Drop for AsyncUnion {
202202
fn drop(&mut self) {
203-
println!(
204-
"AsyncUnion::drop: {}, {}",
205-
unsafe { self.signed },
206-
unsafe { self.unsigned },
207-
);
203+
println!("AsyncUnion::drop: {}, {}", unsafe { self.signed }, unsafe { self.unsigned },);
208204
}
209205
}
210206
impl AsyncDrop for AsyncUnion {

0 commit comments

Comments
 (0)